React Store
@tanstack/react-store
Framework agnostic type-safe store w/ reactive framework adapters
Utilities
store
react
typescript
@tanstack/react-store
Utilities
javascript
npm
frontend
open source
ui
Stars
909
Weekly
17M
Open issues
32
Bundle
~15 kB
Installation
npm install @tanstack/react-storeCode example
import { useStore } from "@tanstack/react-store";
export function Example() {
const value = useStore();
return <p>{String(value)}</p>;
}Pros & cons
Pros
- Actively maintained by Tanner Linsley
- 17M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 32 open issues on GitHub