From d662f5e10704bf089091772b776eea270142cbdd Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Wed, 15 Apr 2020 12:50:21 +1000 Subject: [PATCH] Fix error if a modal is shown on page load --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index f70ea57..44247da 100644 --- a/src/index.js +++ b/src/index.js @@ -10,9 +10,10 @@ import * as serviceWorker from "./serviceWorker"; import "./index.css"; -ReactDOM.render(, document.getElementById("root")); Modal.setAppElement("#root"); +ReactDOM.render(, 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