loki-errorboundary

1.0.2 • Public • Published

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;

Package Sidebar

Install

npm i loki-errorboundary

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

4.08 kB

Total Files

5

Last publish

Collaborators

  • vipinpkd