A tiny (286 bytes) state manager for React/RN/Preact/Vue/Svelte with many atomic tree-shakable stores
Nano Stores is a tiny state manager that can be used with various JavaScript frameworks like React, React Native, Preact, Vue, Svelte, Solid, Lit, Angular, and vanilla JS. It is designed to move logic from components to stores, making applications more efficient and manageable. Nano Stores is small in size, with a minified and gzipped size between 298 and 1013 bytes. It has zero dependencies and uses Size Limit to control its size. With small atomic and derived stores, Nano Stores offers fast performance without the need to call the selector function for all components on every store change. It is also tree-shakable, meaning that a chunk only contains the stores used by components in the chunk. Nano Stores has good TypeScript support and is developed by Evil Martians, a product consulting company specializing in developer tools.
To install Nano Stores, you can use npm or yarn:
npm install nano-stores
or
yarn add nano-stores
Once installed, you can import and start using Nano Stores in your project.
Nano Stores is a lightweight and versatile state manager that can be used with various JavaScript frameworks. It offers smart stores for managing different aspects of an application, including persistence, routing, internationalization, and remote data fetching. With its small size and fast performance, Nano Stores is a powerful tool for improving the efficiency and manageability of applications. Its comprehensive guide and integration guides provide developers with the necessary resources to get started and make the most of Nano Stores. Overall, Nano Stores is a valuable asset for developers looking to optimize their application state management.