Issue:
Hey guys,
I don’t understand why I’m getting the following message:
“The provided JSX element should render to the DOM node with id challenge-node.”
Everything seems fine to me - any ideas please?
My code so far:
const JSX = (
<div id="challenge-node">
<h1>Smth</h1>
<p>Lets render this to the DOM</p>
</div>
);
// change code below this line
ReactDOM.render(JSX,document.getElementById('challenge-node'));
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/render-html-elements-to-the-dom