Fix error if a modal is shown on page load

This commit is contained in:
Mitchell McCaffrey 2020-04-15 12:50:21 +10:00
parent 0a6198a8cc
commit d662f5e107

View File

@ -10,9 +10,10 @@ import * as serviceWorker from "./serviceWorker";
import "./index.css";
ReactDOM.render(<App />, document.getElementById("root"));
Modal.setAppElement("#root");
ReactDOM.render(<App />, document.getElementById("root"));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA