An open API service indexing awesome lists of open source software.

https://github.com/hamlim/react-error-boundary

An unopinionated `<ErrorBoundary />` React component for React 16+.
https://github.com/hamlim/react-error-boundary

error-boundaries error-handling react render-props

Last synced: over 1 year ago
JSON representation

An unopinionated `<ErrorBoundary />` React component for React 16+.

Awesome Lists containing this project

README

          

# React-Error-Boundary 🚯

An unopinionated `` React component for React 16+.

```JSX



{error => error
? (

Oh no an error occurred!


)
: (

)
}


```

## Props:

* `onError` method called after `` catches an error.
* type `function`
* Called with one argument, the `error` object thrown
* `children` function called inside render
* Called with the error object, will be null initially
* This is the only thing returned from render, so you have full control over rendering