react-loadaable
v1.0.1
Published
A higher order component for loading components with promises
Downloads
3
Readme
React Loadaable
An edit on react-loadable that is not bound to webpack...
Usage
import Loadable from 'react-loadaable'
export default Loadable({
loader: () => import('../components/something-big'),
loading: () => <FullBlockLoader loader={CircleLoader} />,
ssr: () => {
if (process.env.TARGET !== 'web') {
return require('../components/something-big').default
}
}
})