From 1cdf9bc18f5cc827f36a589a7160cb98c210f5e4 Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Sat, 22 Aug 2020 17:25:47 -0600 Subject: [PATCH] Lazy load the AdminRouter --- resources/scripts/components/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/components/App.tsx b/resources/scripts/components/App.tsx index fdc43c24b..daaec5c94 100644 --- a/resources/scripts/components/App.tsx +++ b/resources/scripts/components/App.tsx @@ -1,6 +1,6 @@ // import React, { useEffect } from 'react'; // import ReactGA from 'react-ga'; -import React from 'react'; +import React, { Suspense, lazy } from 'react'; import { hot } from 'react-hot-loader/root'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import { StoreProvider } from 'easy-peasy';