Tell us what’s happening:
Describe your issue in detail here.
Your code so far
[TypeError: Cannot read properties of undefined (reading ‘innerHTML’)] This is the error message I keep getting, don’t know what am doing wrong.
import ReactDOM from 'react-dom';
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/116.0.0.0 Safari/537.36
Challenge: React - Render HTML Elements to the DOM
Link to the challenge: