Skip to content

Instantly share code, notes, and snippets.

@nightspirit
Last active Aug 29, 2019
Embed
What would you like to do?
suspense - basic
const MyComponent = () => (
<Suspense fallback={<div>Loading...</div>}>
<AsyncComponent />
</Suspense>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment