react-poop
react-poop
wraps your stateless functions and the render method of your components into a try/catch block.
When something goes wrong, it shows a 💩 (or the custom handler you provided) so that the tree can still be rendered.
Installation
npm i react-poop --save
Usage
// default const App = <div>Hello react-poop</div> // or// with a custom handler const Handler = <div>message</div>const App = <div>Hello react-poop</div>
Test
npm test