Skip to content

v0.1.0

Choose a tag to compare

@shopot shopot released this 03 Dec 22:06
· 3 commits to main since this release

Release v0.1.0

Initial release of react-error-logger — a React component for catching, logging, and managing errors in React applications.

Features

  • Error catching: Automatically captures JavaScript errors, unhandled promise rejections, and React ErrorBoundary errors
  • Persistent storage: Errors are saved to localStorage and persist across page reloads
  • User-friendly UI: Floating button with error count badge and modal for viewing errors
  • Export functionality: Download error logs as a text file
  • Detailed information: Captures stack traces, component stacks, source locations, and timestamps
  • TypeScript support: Fully typed with TypeScript definitions included
  • Zero configuration: Works out of the box with minimal setup

Installation

npm install react-error-logger

Quick Start

import { ReactErrorLogger } from 'react-error-logger';

function App() {
  return (
    <div>
      <ReactErrorLogger />
    </div>
  );
}

Requirements

  • React 18.2.0 or higher