Answers for "rendering htmnl element to DOM"

1

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'));
Posted by: Guest on June-11-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language