JSPM

@resiliojs/react

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 12
  • Score
    100M100P100Q73240F
  • License MIT

Headless React bindings for typed error presentation policies

Package Exports

  • @resiliojs/react

Readme

@resiliojs/react

Headless React bindings for Resilio typed error presentation policies.

Install

pnpm add @resiliojs/react

What It Provides

  • ResilioProvider
  • ResilioPresentationHost and custom renderer registry
  • usePresentError and useResilioInline
  • Multi-surface presentation and occurrence-level dismiss
  • ResilioErrorBoundary and React root handlers
  • Explicit capture, captureAsync, and browser observability bridges

Use the evaluator prop for expected public-error presentation and the reporter prop for unexpected exception observation. The legacy engine prop remains available for compatibility.

<ResilioProvider evaluator={evaluator}>
  <App />
  <ResilioPresentationHost>
    {({ active, dismiss }) => active.map((item) => (
      <ProjectErrorUI
        key={item.id}
        decision={item.decision}
        onClose={() => dismiss(item.id)}
      />
    ))}
  </ResilioPresentationHost>
</ResilioProvider>

Actual toast, modal, banner, and form components remain owned by your app.

See the full documentation.

MIT