Created
August 21, 2018 06:02
-
-
Save isacjunior/56c75fcc80ff14d8d059b88e06e5487a 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 React from 'react' | |
import Loadable from 'react-loadable' | |
const LoadingComponent = () => <div>Loading...</div> | |
const LazyImport = opts => Loadable({ | |
...opts, | |
loading: LoadingComponent, | |
}) | |
export default LazyImport |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment