Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

rendering htmnl element to DOM

const JSX = (
  <div>
    <h1>Hello World</h1>
    <p>Lets render this to the DOM</p>
  </div>
);
// this function is used to render JSX (html) elements to DOM
ReactDOM.render(JSX, document.getElementById('challenge-node'));
 
PREVIOUS NEXT
Tagged: #rendering #htmnl #element #DOM
ADD COMMENT
Topic
Name
6+1 =