1.0.2 • Published 9 months ago

loki-errorboundary v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

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;