Created
June 24, 2018 10:39
-
-
Save AndrejGajdos/67386e94f76c53f6377714ea4e909828 to your computer and use it in GitHub Desktop.
This file is part of project https://github.com/AndrejGajdos/auth-flow-spa-node-react
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Loadable from 'react-loadable'; | |
const Loading = () => ( | |
<div /> | |
); | |
export const AsyncAboutView = Loadable({ | |
loader: () => import('about/AboutView'), | |
loading: () => <Loading />, | |
}); | |
export const AsyncHomeView = Loadable({ | |
loader: () => import('home/HomeView'), | |
loading: () => <Loading />, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment