Statera
NPM
🎉
New Era with Statera
Code Less, Create More: Statera's State Revolution
Beyond React Hooks and Contexts: Statera Rewrites the Rules with zero boilerplate and maximum performance with only 169B gzip bundle size.
$ pnpm add statera
But why Statera?
ManagerInstall SizeMinified SizeGZip SizeZero SetupType SafetyProviderlessMiddlewares
statera1.8KB0.22KB0.18KB
jotai414KB6.8KB2.9KB
zustand2.3KB1.2KB0.5KB
redux290KB3.3KB1.4KB
recoil2355KB80KB25KB
Verified by pkg-size.dev
Statera boasts a minimum caching efficiency of 87% and delivers load times that are at least 95% faster than its closest competitor.
But how to use Statera in React components?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import { statera } from 'statera'; // Create shared state const useCounter = statera(0); // Use shared state in any component function Counter() { const [count, setCount] = useCounter(); // ... render and update logic } // No providers needed, works with SSR too! function App() { return ( <> <Counter /> <Counter /> </> ); }
Turn on Magic
Counter 1
Current value: 0
Counter 2
Current value: 0
Counter 3
Current value: 0
Counter 4
Current value: 0
Statera isn't here to replace or compete with other libraries, it's designed to provide a lightweight solution for everyday development. Syncing state across components has never been easier! Install Statera today and experience the magic for yourself.
$ pnpm add statera
Statera v1
Easy to use, lightweight state management for React.
product
Email Collection
Pricing
FAQ
community
Discord
Twitter
Email
legal
Terms
Privacy
Copyright © 2024 Statera. All Rights Reserved.