Performing an action with state after setting state (useState)
In react functional components, state is managed by the useState hook. This hook returns an array of two elements. One is the state, and the second element is the state setter function.
One major caveat of the state setter function is that it is a...
prophet-bestman.hashnode.dev2 min read