React - Render HTML Elements to the DOM

Tell us what’s happening:

I have given correct answer according to your key but it’s still saying wrong answer. ReactDOM.render(JSX, document.getElementById(“challenge-node”));

Your code so far

const JSX = (
  <div>
    <h1>This is a heading</h1>
    <p>This is a paragraph</p>
  </div>
);

ReactDOM.render(JSX, document.getElementById("challenge-node"));

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

Challenge Information:

React - Render HTML Elements to the DOM

you changed this

reset the step and try again without changing the JSX declaration

1 Like

Thank you, I tried it and it worked.