<div id="root">
<!-- This element's contents will be replaced with your component. -->
</div>
.App {
font-family: sans-serif;
text-align: center;
}
function App() {
return (
<div className="App">
<h1>Parent container</h1>
<h3>This is just a demo container</h3>
<button>open modal</button>
</div>
);
}
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
View Compiled
This Pen doesn't use any external CSS resources.