Render HTML Elements to the DOM

const JSX = (
ReactDOM.render(JSX, document.getElementById('challenge-node')),
  <div id='challenge-node'>
    <h1>Hello World</h1>
    <p>Lets render this to the DOM</p>

why it told me that it is a problem in this code
The provided JSX element should render to the DOM node with id challenge-node

const JSX = (

Hello World

Lets render this to the DOM

),ReactDOM.render(JSX, document.getElementById('challenge-node')); // Change code below this line I had change it but a problem still exist

Thank you I had correct the problem and it work now.

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