React - Render HTML Elements to the DOM

Tell us what’s happening:
Describe your issue in detail here.

  **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.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/103.0.5060.114 Safari/537.36 Edg/103.0.1264.62

Challenge: React - Render HTML Elements to the DOM

Link to the challenge:

Uncaught TypeError: document.getElementByID is not a function

Check for typos and make sure you provide the correct string to it.

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