loki-errorboundary
v1.0.2
Published
This component manage error in their children components show it in ui gracefully
Downloads
3
Maintainers
Readme
About
This is a react component which helps app from crashing when a child component gets error . This will manage error gracefully and shown to ui
Example
import React from 'react';
import ErrorBoundary from 'loki-errorboundary';
const MyComponent = () => {
return (
<ErrorBoundary fallback={<h2>Custom fallback message.</h2>}>
{/* Your component's content */}
</ErrorBoundary>
);
};
export default MyComponent;