Redux
cooker_666
这个作者很懒,什么都没留下…
展开
-
关于如何引入redux-DevTool
Redux-DevTools安装过程略,百度即可开发过程中引入Redux-Dev的检测具体link引入方法这里我因为用applyMiddleware中间件引入了,所以要引入中间检测机制要比起只使用redux创建store要复杂一些,具体做法如下:首先引入从 redux 里面引入compose.代码:import { createStore, applyMiddleware, com...原创 2019-12-18 01:41:57 · 264 阅读 · 0 评论 -
如何理解Redux中的action
例子1: const { createStore } = Redux; function couter(state = 0, action) { switch (action.type) { case "add": return state + 1; ...原创 2019-12-12 16:58:05 · 672 阅读 · 0 评论