This package provides ErrorBoundary component.
Please follow below instructions to install and use this component.
-
npm install suji-errorboundary
-
import ErrorBoundary from suji-errorboundary
-
Wrap this component around your desired component like below. <ErrorBoundary fallback={
Something went wrong...}>