Created
February 21, 2019 21:18
-
-
Save adamhenson/0e9204a18cddb186ed6ba5996e12fa78 to your computer and use it in GitHub Desktop.
Client side render entry in a React web app with Loadable Ready
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 { render } from 'react-dom'; | |
import { loadableReady } from '@loadable/component'; | |
import App from './somewhere/out/there/App'; | |
loadableReady(() => render( | |
<App />, | |
document.getElementById('root'), | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment