Created
March 17, 2023 03:30
-
-
Save pjcodesjs/5cda238f985eff289a2c00d0f897b627 to your computer and use it in GitHub Desktop.
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, { Suspense } from 'react'; | |
function App() { | |
return ( | |
<div> | |
<Suspense fallback={<div>Loading...</div>}> | |
<MyComponent /> | |
</Suspense> | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment