Created
January 4, 2021 10:10
-
-
Save donfour/c923db0fed75e37ac971a7cdd56fd22b to your computer and use it in GitHub Desktop.
Lazy loading in React
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
const MyComponent = React.lazy(() => import('./MyComponent.js')); |
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 MyComponent from './MyComponent.client.js'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment