How to render to the DOM in React

ReactDOM
By Jad Joubran · 
Last updated Jan 28, 2020
<div id="root"></div>
import React from "react";
import { render } from "react-dom";

function App() {
  return <h1>Hello World!</h1>;
}

const root = document.querySelector("#root");

render(<App />, root);
<h1>Hello World!</h1>