1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
import React from "react"; const page = ( <div> <h1>Hello, everyone!</h1> <p>A paragraph</p> </div> ); const navbar = ( <nav> <h1>terminaldweller.com</h1> <ul> <li>Pricing</li> <li>About</li> <li>Contact</li> </ul> </nav> ) React.ReactDOM.render(navbar, document.getElementById("root"));