@acoolhq/react-tiny-store
react-tiny-store is a tiny, selector-first state layer for React built on useSyncExternalStore.
It gives you granular subscriptions, SSR-safe hydration, and no boilerplate reducers.
- ✨ Selector-driven updates (
useStoreSelector, orcreateContextSync().useSelector) - 🧠 Stable equality via
Object.is(overrideable per selector) - 🧩 Works great as local-but-shareable state (not another monolith)
- 🧪 Tiny and testable
bash
npm i @acoolhq/react-tiny-store
# or
pnpm add @acoolhq/react-tiny-store- Start here: Getting Started
- Dive deeper: Concepts · SSR & Hydration · Batching Updates · Performance Patterns
- API: Reference · Examples
- Live Bench: Benchmarks