react-error-boundary
Advanced tools
Comparing version 4.0.1 to 4.0.2
@@ -56,3 +56,3 @@ import { Component, ComponentType, FunctionComponent, ReactElement, ReactNode, ErrorInfo, PropsWithChildren, PropsWithRef } from "react"; | ||
componentDidUpdate(prevProps: ErrorBoundaryProps, prevState: ErrorBoundaryState): void; | ||
render(): import("react").FunctionComponentElement<import("react").ProviderProps<import("ErrorBoundaryContext").ErrorBoundaryContextType | null>>; | ||
render(): ReactElement<any, string | import("react").JSXElementConstructor<any>>; | ||
} | ||
@@ -59,0 +59,0 @@ export type UseErrorBoundaryApi<Error> = { |
{ | ||
"name": "react-error-boundary", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Simple reusable React error boundary component", | ||
@@ -5,0 +5,0 @@ "author": "Brian Vaughn <brian.david.vaughn@gmail.com>", |
# react-error-boundary | ||
Reusable React [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) component. Supports all React renderers (including React DOM and React Native). Refer to [this blog post](https://kentcdodds.com/blog/use-react-error-boundary-to-handle-errors-in-react) for more examples of how this package can be used. | ||
Reusable React [error boundary](https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary) component. Supports all React renderers (including React DOM and React Native). | ||
@@ -163,2 +163,6 @@ ### If you like this project, [buy me a coffee](http://givebrian.coffee/). | ||
// Can be rendered as <ComponentWithErrorBoundary {...props} /> | ||
``` | ||
``` | ||
--- | ||
[This blog post](https://kentcdodds.com/blog/use-react-error-boundary-to-handle-errors-in-react) shows more examples of how this package can be used, although it was written for the [version 3 API](https://github.com/bvaughn/react-error-boundary/releases/tag/v3.1.4). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44944
167