reducer 是一個function,可接收兩個參數:目前的狀態和要執行的操作; initialState 代表初始狀態; 使用useReducer 會得到state, dispatch 兩個值,可對應到Redux ...
確定! 回上一頁