Error Boundary
Purpose
Install
yarn add react-error-boundaryExample
import { ErrorBoundary } from "react-error-boundary";
<ErrorBoundary
FallbackComponent={ChunkError}
onReset={() => {
window.location.reload();
}}
>
<Routes>
...
</Routes>
</ErrorBoundary>Last updated