Tell us what’s happening:
I have done everything there is to be done. Can somebody highlight the mistake that was made.
Your code so far
import React from 'react';
import ReactDOM from 'react-dom';
const JSX = (
<div id = 'challenge-node'>
<h1>Hello World</h1>
<p>Lets render this to the DOM</p>
</div>
);
// change code below this line
ReactDOM.render(<challenge-node/>,document.getElementsById('challenge-node'));
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.25 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/render-html-elements-to-the-dom