useReducer 是 useState 的替代方案。它接收一个形如 (state, action) => newState 的reducer ,并返回当前的state 以及与其配套的 dispatch ...
確定! 回上一頁