Skip to content

A react higher order component that handles error boundary. This is an implementation of the new feature in React 16: Error Handling.

License

Notifications You must be signed in to change notification settings

jojo-tutor/hoc-error-boundary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Higher Order Function (Error Boundary)

Packagist

About

A react higher order function that handles error boundary. This is an implementation of the new feature in React 16: Error Handling. This is reusable function that accepts a component (functional or class-based), and returns a new component that has error boundary. This is a pure fuction with no dependency.

Demonstration

CodePen:

https://codepen.io/jojo-tutor/pen/GxOemZ

Herokuapp:

https://hoc-error-boundary.herokuapp.com

Installing

To run app, follow the steps below:

git clone https://github.com/jojo-tutor/hoc-error-boundary.git
cd hoc-error-boundary
npm i
npm start

Authors

Jojo E. Tutor

License

This project is licensed under the MIT License - see the LICENSE file for details

Enjoy :)

About

A react higher order component that handles error boundary. This is an implementation of the new feature in React 16: Error Handling.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published