Install
@input-actions/core works in any React 18+ project. Adapter packages (Redux, Zustand, Jotai, thi.ng, MobX) ship separately and are optional — only needed for sharing state across the React tree.
Install
Section titled “Install”pnpm add @input-actions/corenpm install @input-actions/coreyarn add @input-actions/coreThe packages are ES modules only, for React 18 or 19 and Node 20 or later. Vite, Next, webpack and Vitest load them with no configuration. Jest needs a transform or its ESM mode; see Testing.
Size, minified and gzipped: about 6–7 kB for a typical app, whether it uses useLocalActions or StoreProvider with useStore, and 10 kB for every export of core. Each adapter adds under 1 kB, and timers 0.7 kB. Unused exports drop out when your bundler tree-shakes. CI holds every entry point to a budget, set in .size-limit.json.
That’s it for the local-state path. For global state, also install an adapter — see the Global state quickstart.
Using TypeScript, Next.js or React Native? See TypeScript setup, Next.js and SSR and React Native.
Pick a starting pattern
Section titled “Pick a starting pattern”Three doors. Pick the one that matches your situation; you can mix them later without rework.
After any of those, the Actions as data concept page explains the underlying idea — why every state change is a tuple instead of a callback.