Please help me with this React code

Tell us what’s happening:
Can someone please guide how to go about this one?

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.

Challenge: Render HTML Elements to the DOM

Link to the challenge:

Hello there,

The above code is not JSX. So, it should not be placed with the JSX…

Hope this helps

Yes, as Sky points out, that is not the right place to put that. Notice the comment in the original code that says “// Change code below this line”. That is telling you to not change code above that line, but to add below, which is where this should go.

You also misspelled “getElementById”.

When I make those two changes, your code passes for me.

Oh my bad! Thanks a lot for pointing it.

Thanks it helped. :slightly_smiling_face: