Getting started with Cervello
🤯 Simplest and reactive state manager for React
(just 1.7kb)
Cervello is a reactive, tiny and fast state-management library for React
It's as easy as reassign a new value
to the store properties.
It will make an immutable change to the store and notify all the components subscribed
to that property or the entire store.
v5 (New Release)
Cervello v5 is HERE!.
The new API is much more flexible and powerful, with a lot of new features.
It is a complete rewrite of the internals, focused on performance, simplicity and flexibility.
Features
- ⚛️ Truly reactive on store change (nested properties too 🚀!!)
- ✅ Super simple and minimalistic API
- 🚀 Batched updates and optimized re-renders
- 🐨 Listen properties lazily
- 🔒 Immutable changes
- 🔑 Typescript support
Installation
- pnpm
- npm
- yarn
pnpm add @cervello/react
npm install @cervello/react
yarn add @cervello/react