Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
/**
 * @file this is for react error handling to help encapsulate errors
 *
 * @spec
 * https://github.com/v8/v8/wiki/Stack-Trace-API
 *
 * @discussions
 * https://github.com/facebook/react/issues/2461#issuecomment-158787924
 * https://github.com/facebook/react/pull/5615
 * https://github.com/skiano/react-safe-render/blob/feature/safe-methods/index.js
 * https://docs.google.com/document/d/1rda3yKGHimKIhg5YeoAmCOtyURgsbTH_qaYR79FELlk/edit#heading=h.sdpzjcyw06a5
 *
 * @libs
 * https://www.stacktracejs.com/
 * https://github.com/felixge/node-stack-trace
 */
import React from 'react';
/**
 * @tutorial https://reactjs.org/blog/2017/07/26/error-handling-in-react-16.html
 * @see https://github.com/commissure/redbox-react
 * @see https://github.com/bvaughn/react-error-boundary
 */
declare class ErrorBoundary extends React.Component {
    state: {
        hasError: boolean;
        error: any;
        stack: any;
    };
    componentDidCatch(error: any, info?: any): void;
    render(): {};
}
declare function withErrorBoundary(): (Component: any) => (props: any) => JSX.Element;
export { withErrorBoundary };
export { ErrorBoundary };
export default ErrorBoundary;