@iamqitmeer/react-smart-state
v1.0.1
Published
A GOATed, lightweight, TypeScript-first state management library for React, combining the power of atoms and signals with integrated solutions for forms and data fetching.
Downloads
4
Maintainers
Readme
react-smart-state
A GOATed, lightweight, TypeScript-first state management library for React, combining the power of atoms and signals with integrated solutions for forms and data fetching.
Features
- Atomic State: Manage global and local state with
atomandcomputedfor optimized, re-render-free updates. - True Signal-based Performance: Components subscribe to only the atoms they need, preventing unnecessary re-renders.
- High-Performance Forms: A
useSmartFormhook built on atoms for field-level state updates. - Modern Data Fetching:
useSmartFetchanduseSmartMutationhooks inspired by TanStack Query, with caching, retries, and invalidation. - SSR Ready:
SmartStateProviderensures state isolation on the server. - Developer Tools: A built-in, non-intrusive DevTools for state inspection and action logging.
- TypeScript First: Superior type safety and autocompletion out of the box.
- Minimal Bundle Size: Less than 10KB minified.
Installation
npm install react-smart-state zod