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