I have this CodePen for this right now, and I’m loading React, ReactDOM and JSX by adding URLs in settings. I added these URLs under JS settings for that:
https://unpkg.com/react@16/umd/react.development.js
https://unpkg.com/react-dom@16/umd/react-dom.development.js
https://unpkg.com/babel-standalone@6/babel.min.js
I was planning to put just the container div in the HTML and render the stuff nested inside of it through render in the component’s class definition, but I’m not sure if doing it like this is working:
class RandomQuoteApp extends React.Component {
constructor(props) {
super(props);
}
render() {
return <p id="text"></p>
<p id="author"></p>
<button id="new-quote">New Quote</button>
<a href="https://twitter.com/intent/tweet" id="tweet-quote">Tweet Quote</a>
}
}
ReactDOM.render(<RandomQuoteApp />, document.getElementById("quote-box"));
I was getting an error saying that “<” is an unexpected token. And only the first test for Technology Stack, the first test for Content and the first test for Layout are passing and the rest are failing.
What am I doing wrong here?