@1apostoli/use-external-state
v0.1.3
Published
React hook for syncing browser-backed state with Zod validation
Readme
@1apostoli/use-external-state
React hook for managing browser-backed state with Zod v4 validation. See the monorepo README for full documentation, API reference, and examples.
- Install:
pnpm add @1apostoli/use-external-state - Exports:
useExternalState,LocalStorageStore,SessionStorageStore,CookieStore,QueryParameterStore,createDebouncer,makeHook,makeContext,makeHOC, and keyed setter helpers.
The package ships both modern (ESM) and legacy (CJS) bundles under
build/modern and build/legacy respectively, and includes type declarations
for each target.
