React + lazy loading is working

This commit is contained in:
2021-01-18 23:55:13 +11:00
parent 4f685ab44c
commit 30a5251400
8 changed files with 1762 additions and 4 deletions
+25
View File
@@ -0,0 +1,25 @@
//react
import React from 'react';
import { BrowserRouter, Switch } from 'react-router-dom';
//library components
import LazyRoute from './lazy-route';
//styling
//TODO: styling import
//common components
//TODO: header
//TODO: footer
const App = props => {
return (
<BrowserRouter>
<Switch>
<LazyRoute exact path='/' component={() => import('./pages/homepage')} />
</Switch>
</BrowserRouter>
);
};
export default App;