React Safe Render
Helper to make sure your react components do not kill your entire application when their lifecylce methods fail.
Usage
Before any other components are created
var React = ; React { // if a component fails you can handle the failure however you want errReportdisplayName // name of component that failed errReportprops // the props that the component recieved errReportmethod // name of method that failed (ie: componentWillMount) errReportarguments // arguments for the method that failed (if there were any) errReporterror // the original error object };
Note on es2015
At the moment this only works for components made via React.createClass(). It will not catch errors if you use the Component class directly.
Disable for a single component
If you want to disable the error handler for a component, you can use a static property
React;