React-style state action for a specific application-state value.
Passing a function follows the same contract as React useState: the function receives the previous value and returns the next value.
useState
React-style state action for a specific application-state value.
Passing a function follows the same contract as React
useState: the function receives the previous value and returns the next value.