Created
August 25, 2021 11:26
-
-
Save Hydrock/4e2167dd2ba5785731e362d98350144d 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
import { Suspense, SuspenseList } from "react"; | |
const App = () => { | |
return ( | |
<SuspenseList revealOrder="forwards"> | |
<Suspense fallback={"Loading..."}> | |
<ProfilePicture id={1} /> | |
</Suspense> | |
<Suspense fallback={"Loading..."}> | |
<ProfilePicture id={2} /> | |
</Suspense> | |
<Suspense fallback={"Loading..."}> | |
<ProfilePicture id={3} /> | |
</Suspense> | |
</SuspenseList> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment