hooks library
A set of APIs that allow the user to hook into the library without being concerned about the lower level implementation details.
Classes
-
Reducer<
Actions, Value> - Implements a reducer for state management.
- StateFactory
- A factory for State objects.
Properties
- state → StateFactory
-
The default StateFactory
final
Functions
-
reducer<
Actions, Value> (ReducerFunction< Actions, Value> reducer, Value initialState) → Reducer<Actions, Value> - Implements a reducer function to manage the state.
Typedefs
-
ReducerFunction<
Actions, Value> = Value Function(Actions action, Value state) - Reduces the current state + event down to the next state.