Created
March 11, 2020 10:44
-
-
Save vinayakhumberi/27ec580bd82e9b5fc95b8e483e4e8690 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Loadable from 'react-loadable'; | |
export const ContactUs = Loadable({ | |
loader: () => import('./source/pages/ContactUs/ContactUs'), | |
loading: () => LoadingPage | |
}); | |
export const HomePage = Loadable({ | |
loader: () => import('./source/pages/Home/HomePage'), | |
loading: () => LoadingPage | |
}); | |
export default [ | |
{ | |
path: '/', | |
component: HomePage, | |
exact: true | |
}, | |
{ | |
path: '/contact-us', | |
component: ContactUs | |
}, | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment