Render HTML Elements to the DOM(2)

Render HTML Elements to the DOM(2)
0.0 0

#1

Tell us what’s happening:

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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.139 Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/front-end-libraries/react/render-html-elements-to-the-dom


#2

At the last line, it should be JSX the variable, not 'JSX' the string.