Created
February 28, 2024 06:41
-
-
Save antklim/b760a0a3360f70748fe46553a8ab9a36 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 { ErrorBoundary } from 'react-error-boundary' | |
export const Component = () => ( | |
<ErrorBoundary fallback={<p>Something went wrong ...</p>}> | |
<Suspense fallback={<p>Downloading ...</p>}> | |
<Component /> | |
</Suspense> | |
</ErrorBoundary> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment