useReducer:useState 的替代方案。接受一个类型为 (state, action) => newState 的 reducer,并返回当前状态与一个 dispatch 方法。 (如果你熟悉 Redux,你已经知道它是如何工作的。)
useReducer
用自己的话写下这一站的结论。