diff options
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Loadable.js | 15 | ||||
| -rw-r--r-- | src/components/Root.js | 12 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/components/Loadable.js b/src/components/Loadable.js deleted file mode 100644 index 65843a1..0000000 --- a/src/components/Loadable.js +++ /dev/null @@ -1,15 +0,0 @@ -import L from 'react-loadable'; - -import Loading from './Loading'; - -// error will passed if the component failed to load -// const Loading = ({ error }) => <div>loading</div>; - -const Loadable = opts => - L({ - loading: Loading, - delay: 200, - ...opts - }); - -export default Loadable; diff --git a/src/components/Root.js b/src/components/Root.js index 99b815e..b9d7c42 100644 --- a/src/components/Root.js +++ b/src/components/Root.js @@ -17,18 +17,6 @@ import { store } from '../store/configureStore'; // testing... // import StyleGuide from 'c/StyleGuide'; -// import Loading from 'c/Loading'; - -// for loading async chunk...not used yet - -// import Loadable from './Loadable'; -// const delay = t => new Promise(r => setTimeout(r, t)); -// const AsyncAbout = Loadable({ -// loader: () => delay(800).then(() => import('./About')) -// }); -// const AsyncHello = Loadable({ -// loader: () => import('./Hello') -// }); import './Root.scss'; import s0 from './Root.module.scss'; |
