https://github.com/cometkim/rescript-react-error-boundary
ReScript binding for react-error-boundary
https://github.com/cometkim/rescript-react-error-boundary
Last synced: 4 months ago
JSON representation
ReScript binding for react-error-boundary
- Host: GitHub
- URL: https://github.com/cometkim/rescript-react-error-boundary
- Owner: cometkim
- License: mit
- Created: 2020-04-24T18:18:00.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:31:50.000Z (over 2 years ago)
- Last Synced: 2025-10-20T12:36:39.735Z (8 months ago)
- Language: ReScript
- Homepage:
- Size: 858 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rescript-react-error-boundary
[](https://www.npmjs.com/package/rescript-react-error-boundary)
[](#LICENSE)
ReScript binding for [react-error-boundary](https://github.com/bvaughn/react-error-boundary)
## Installation
```bash
yarn add rescript-react-error-boundary
```
And add it into your `bsconfig.json`
```json
"bs-dependencies": [
"rescript-react-error-boundary"
]
```
## Example
```res
open RescriptReactErrorBoundary
@react.component
let make = () => {
Js.Console.error(
switch (error->Js.Exn.message) {
| Some(message) => message
| None => "Unknown error occured while rendering"
},
)
}>
}
```
## LICENSE
MIT