Using the functional updates pattern with React hooks
The functional updates pattern can be used whenever you need to update state using the previous...
Tags: react, hooks