Skip to main content
Version: 4.0 (Current)

Browser React

@dz-web/esboot-browser-react provides React-focused browser utilities for ESBoot.

Installation

pnpm install @dz-web/esboot-browser-react

AOP

monitorPerformance

Monitors component performance through built-in react-scan integration.

interface MonitorPerformanceOptions {
enabledReactScan?: boolean;
showToolbar?: boolean;
showFPS?: boolean;
}

Components

ErrorBoundary

React error boundary wrapper built on top of react-error-boundary.

It can:

  • catch rendering errors from child trees
  • trigger onError
  • trigger onReset
  • render a custom fallbackRender

Typical usage:

import { ErrorBoundary } from '@dz-web/esboot-browser-react';

<ErrorBoundary>
<YourComponent />
</ErrorBoundary>