useReducer

useReducer documentation