const state = useContext(myContext);. // useReducer,具體用法和redux類似,使用dispatch(action)修改數據。 // reducer中處理數據並返回新的state. const [state ...
確定! 回上一頁