@runtimevault/react
v1.0.4
Published
RuntimeVault React adapter — provider, ErrorBoundary, and store adapters
Maintainers
Readme
@runtimevault/react
React adapter for RuntimeVault — provider, ErrorBoundary, and restore helpers.
Install
npm install @runtimevault/core @runtimevault/react
# or
pnpm add @runtimevault/core @runtimevault/reactQuick start
import { RuntimeVaultProvider, RuntimeVaultErrorBoundary } from '@runtimevault/react';
export function App() {
return (
<RuntimeVaultProvider
apiKey={process.env.NEXT_PUBLIC_RV_KEY!}
environment="production"
>
<RuntimeVaultErrorBoundary>
<YourApp />
</RuntimeVaultErrorBoundary>
</RuntimeVaultProvider>
);
}API
RuntimeVaultProvider
Initializes the core SDK for the React tree.
RuntimeVaultErrorBoundary
Captures React render errors as snapshots.
Restore helpers
Use package exports to hydrate framework state during local replay sessions.
Links
License
MIT
