React - Render HTML Elements to the DOM

Tell us what’s happening:I cannot get where i am getting it wrong.

Your code so far

const JSX = (
  <div>
    <h1>Hello World</h1>
    <p>Lets render this to the DOM</p>
  </div>
);
// Add your code below this line 
 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/121.0.0.0 Safari/537.36

Challenge Information:

React - Render HTML Elements to the DOM

What error message are you getting? Looking carefully at the exact wording of the error message can often help.

2 Likes

This is the error i have been receiving:

Uncaught ReferenceError: challenge is not defined

Welcome to the forum @iamolalekan_sam

Please check your casing:
image

Happy coding