React: Please help

React: Please help
0

Tell us what’s happening:

Please someone kindly help me out here, i am trying to render a JSX element to the DOM using id=“challenge-node” but its not working. please assist

Your code so far


const JSX = (
<div>
  <h1>Hello World</h1>
  <p>Lets render this to the DOM</p>
</div>
);
// change code below this line
ReactDOM(JSX, document.getElementById("challenge-node"));

On the last line - should be - ReactDOM.render()

okay, thanks very much @Docwali777