3 ms·Take a look at useReducer(no 3rd package, part of the React api)by andsbf 5y agoTake a look at useReducer(no 3rd package, part of the React api)