# react-basic-error-boundary

> Basic error boundary component

Latest version **1.1.0** (published 2019-05-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-basic-error-boundary
pnpm add react-basic-error-boundary
yarn add react-basic-error-boundary
bun add react-basic-error-boundary
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-05-03 |
| First published | 2019-02-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Tiaan du Plessis |
| Maintainers | tiaanduplessis |
| Keywords | react, error, react, boundary |

## Links

- npm: https://www.npmjs.com/package/react-basic-error-boundary
- Repository: https://github.com/tiaanduplessis/react-basic-error-boundary
- npm.io page: https://npm.io/package/react-basic-error-boundary

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) ^15.7.2

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-05-03
- 1.0.0 — 2019-02-14

## README

# react-basic-error-boundary
[![package version](https://img.shields.io/npm/v/react-basic-error-boundary.svg?style=flat-square)](https://npmjs.org/package/react-basic-error-boundary)
[![package downloads](https://img.shields.io/npm/dm/react-basic-error-boundary.svg?style=flat-square)](https://npmjs.org/package/react-basic-error-boundary)
[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)
[![package license](https://img.shields.io/npm/l/react-basic-error-boundary.svg?style=flat-square)](https://npmjs.org/package/react-basic-error-boundary)
[![make a pull request](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](http://makeapullrequest.com) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) 
[![Greenkeeper badge](https://badges.greenkeeper.io/tiaanduplessis/react-basic-error-boundary.svg)](https://greenkeeper.io/)

> Basic error boundary component. Based on the [React documentation](https://reactjs.org/docs/error-boundaries.html).

## Table of Contents

- [Install](#install)
- [Usage](#usage)
- [Contribute](#contribute)
- [License](#License)

## Install

This project uses [node](https://nodejs.org) and [npm](https://www.npmjs.com).

```sh
$ npm install react-basic-error-boundary
$ # OR
$ yarn add react-basic-error-boundary
```

## Usage

```js
import React, {Component} from 'react'
import BasicErrorBoundary from 'react-basic-error-boundary'


class App extends Component () {
	render() {
		return <BasicErrorBoundary
			fallback={() => <NoMatch/>}
			onError={(error) => console.error(error)}
			>
		<h1>Hi</h1>
		</BasicErrorBoundary>
	}
}

export default App
```

## Contribute

1. Fork it and create your feature branch: `git checkout -b my-new-feature`
2. Commit your changes: `git commit -am "Add some feature"`
3. Push to the branch: `git push origin my-new-feature`
4. Submit a pull request

## License

MIT © [tiaanduplessis](https://github.com/tiaanduplessis)

---
_Source: https://npm.io/package/react-basic-error-boundary · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
