Skip to content

Instantly share code, notes, and snippets.

@jpgorman
Last active September 28, 2018 09:36
Show Gist options
  • Save jpgorman/f453e9a813c5d5af87058a34631137b6 to your computer and use it in GitHub Desktop.
Save jpgorman/f453e9a813c5d5af87058a34631137b6 to your computer and use it in GitHub Desktop.
// my-app.js
import {LazyLoadModule} from './LazyLoadModule'
const MyApp = () => (
<div className='App'>
<h1>Hello</h1>
<LazyLoadModule resolve={() => import('./modules/my-module')} />
</div>
)
ReactDOM.render(<MyApp />, document.getElementById('root'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment