react_zustand library
Functions
-
inc(
) → void -
Increments the counter outside the render cycle (
store.getState().inc()). -
useCount(
) → int - Reads the current counter value from the zustand store as a React hook.
-
useDoubled(
) → int - Reads twice the counter value — demonstrates derived state.