import React from 'react'; import ReactDOM from 'react-dom'; const myelement = ( <div> <h1>I am a Header.</h1> <h1>I am a Header too.</h1> </div> ); ReactDOM.render(myelement, document.getElementById('root'));
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <title>React App</title> </head> <body> <div id="root"></div> </body> </html>