Created
August 15, 2019 15:06
-
-
Save ChettaDarkkill/c66b7a3d7eca29525e6e541295cc68a9 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
| const OtherComponent = React.lazy(() => import('./OtherComponent')); | |
| function MyComponent() { | |
| return ( | |
| <div> | |
| <Suspense fallback={<div>Loading...</div>}> | |
| <OtherComponent /> | |
| </Suspense> | |
| </div> | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment