1.0.2 • Published 2 years ago
loki-errorboundary v1.0.2
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;