Tell us what’s happening:
const JSX = (
header
paragraph
//const element = document.getElementById(‘challenge-node’);
//element.style.backgroundColor = “red”;
ReactDOM.render(JSX, document.getElementById(‘challenge-node’));
This should complete the Render HTML elements to the DOM challenge, but it’s not working…?
Your code so far
const JSX = (
<div>
<h1>header</h1>
<p>paragraph</p>
</div>
);
//const element = document.getElementById('challenge-node');
//element.style.backgroundColor = "red";
ReactDOM.render(JSX, document.getElementById('challenge-node'));
Your browser information:
User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:131.0) Gecko/20100101 Firefox/131.0
Challenge Information:
React - Render HTML Elements to the DOM