The type of stateful value.
The delay after which currState
is synchronized with nextState
.
Thee initial state or a callback that returns an initial state.
Returns stateful values and a function to update them. Upon invocation of setState
, the nextState
is assigned
synchronously, and the component is re-rendered. After the ms
the currState
is set to nextState
and component
is re-rendered again.
The type of stateful value.
The delay after which currState
is synchronized with nextState
.
Returns stateful values and a function to update them. Upon invocation of
setState
, thenextState
is assigned synchronously, and the component is re-rendered. After thems
thecurrState
is set tonextState
and component is re-rendered again.