From b8263a2fe285104877a1df6f0cbc81d49cb27ef8 Mon Sep 17 00:00:00 2001 From: raftar2097 Date: Mon, 30 Mar 2020 20:37:37 +0530 Subject: [PATCH] Update index.js Replaced "require" with "import" --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index b8b666172..cbbcdf57b 100644 --- a/src/index.js +++ b/src/index.js @@ -9,6 +9,7 @@ import { Provider } from "react-redux"; /* A U S P I C E I M P O R T S */ import configureStore from "./store"; import { initialiseGoogleAnalyticsIfRequired } from "./util/googleAnalytics"; +import Root from "./root"; /* S T Y L E S H E E T S */ import "font-awesome/css/font-awesome.css"; import "leaflet/dist/leaflet.css"; @@ -35,7 +36,6 @@ initialiseGoogleAnalyticsIfRequired(); /* Using React Hot Loader 4 https://github.com/gaearon/react-hot-loader */ const renderApp = () => { - const Root = require("./root").default; // eslint-disable-line global-require ReactDOM.render(