@ooopsstudio/react
v0.1.0
Published
Thin React adapter for the current @ooopsstudio/sdk surface.
Readme
@ooopsstudio/react
Thin React-oriented helpers built on top of @ooopsstudio/sdk.
Install
pnpm add react @ooopsstudio/react @ooopsstudio/sdk @ooopsstudio/core
# or
npm install react @ooopsstudio/react @ooopsstudio/sdk @ooopsstudio/coreQuickstart
import {instrumentFetchHandler, measurePageLoad} from '@ooopsstudio/react'
export const handler = instrumentFetchHandler(async() => {
return new Response('ok', {status: 200})
}, {route: '/health'})
measurePageLoad({route: '/dashboard'})Runtime Notes
- ESM-only package
- Node
>=20 - Peer dependency:
react >=18 - Intended for React applications and build pipelines that support ESM
- Server vs browser behavior depends on the helper you import from the package root
Package Policy
- Keep usage on the public root export only
- Versioning is managed through Changesets
License
MIT © Ooops Studio
