使用react的Hook写个redux
redux
import * as React from 'react'
const { useContext, useReducer, createContext } = React
//核心-->一定要返回状态
function reducerInAction(state, action) {
if (typeof action.reducer == 'function') ...
翻译
2019-07-29 16:32:12 ·
1069 阅读 ·
0 评论