You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-error-boundaries

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-error-boundaries - npm Package Compare versions

Comparing version

to
0.1.3

2

package.json
{
"name": "react-error-boundaries",
"version": "0.1.2",
"version": "0.1.3",
"description": "React HOC for error boundaries.",

@@ -5,0 +5,0 @@ "main": "index.js",

# react-error-boundaries
A reusable React error boundaries component.
[![version](https://img.shields.io/npm/v/react-error-boundaries.svg?style=flat-square)](http://npm.im/react-popconfirm)

@@ -7,2 +9,6 @@ [![downloads](https://img.shields.io/npm/dm/react-error-boundaries.svg?style=flat-square)](http://npm-stat.com/charts.html?package=react-popconfirm&from=2017-04-07)

> Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed. Error boundaries catch errors during rendering, in lifecycle methods, and in constructors of the whole tree below them.
![react-error-boundaries](https://raw.githubusercontent.com/Chyrain/MDPictures/master/res/react_error_boundaries.png)
Base on React 16.2.0, babel required:

@@ -12,11 +18,11 @@

{
"presets": [
"stage-3",
"react"
],
"plugins": [
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-rest-spread"
]
"presets": [
"stage-3",
"react"
],
"plugins": [
"transform-decorators-legacy",
"transform-class-properties",
"transform-object-rest-spread"
]
}

@@ -83,10 +89,8 @@ ```

Input 'i' in search input and error will throw.
```shell
# run example, auto open browser and enable hot loader
cd example
npm install
npm start
# build
npm run build
```

@@ -93,0 +97,0 @@