<aside> ⏸️ Code is better with some context!
Goals is recommended reading before you look at this Quick Start, so that you understand the motivation behind Riduce's development.
We're also writing here for an audience who has used the reducer pattern before (e.g. either with useReducer
or with Redux).
Guides + examples is a more suitable read if you haven't used the reducer pattern before.
</aside>
This quick start is a minimal guide to:
Both useRiducer and riduce are bundled with the npm riduce
library.
If you wish to use useRiducer , you should make sure that React ≥ 16.8.0 is also installed.
import { useRiducer } from 'riduce'
// import riduce from 'riduce'
useRiducer
riduce
useRiducer
riduce