摘要:
###如果不打算用redux-thunk import { createStore, compose} from 'redux'; import reducer from './reducer' const composeEnhancers = window.__REDUX_DEVTOOLS_EXT 阅读全文
posted @ 2021-02-10 11:10
abcdefgab
阅读(70)
评论(0)
推荐(0)
摘要:
####diff算法主要是同级比较,生成数组,进行数组替换 ####reducer可以接收state,但是绝不能修改state ####纯函数指的是:给固定收入,就一定有固定的输出,而且不会有任何副作用【不能例如:new data(),对原有函数参数进行修改】 ###中间件是action和store 阅读全文
posted @ 2021-02-10 11:07
abcdefgab
阅读(46)
评论(0)
推荐(0)

浙公网安备 33010602011771号