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