StateSelector
Overview
Type: type
Type definition of the selector function that is used in the hooks provided by cotton-box-react
.
It is a function that accepts the state as an argument and returns a derived value.
This should be a pure function.
type StateSelector<State, SelectedState> = (state: State) => SelectedState