In a jam, help me please lol

Tell us what’s happening:
Describe your issue in detail here.
Trying to figure out what I’m doing wrong

  **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

const JSX = (
<div id="challenge-node">
<h1>Hello World</h1>
<p>Lets render this to the DOM</p>
 ReactDOM.render(JSX, document.getElementById("challenge-node"));
</div>
);
  **Your browser information:**

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

Challenge: Render HTML Elements to the DOM

Link to the challenge:

I am oretty sure that is the wrong place for it, it should be in the global scope

you also can’t declare JSX twice, it’s a const variable!

Okay, so take out the JSX on the 2nd const?

Thank you , appreciate it

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.