StateSetter<P, S> typedef

S StateSetter (
  1. P props,
  2. S prevState
)

StateSetter function that given the previous state and the next props returns the next state.

Implementation

typedef S StateSetter<P, S>(P props, S prevState);