React-安装和配置redux调试工具Redux DevTools
2024-10-10 02:50:12
chrome扩展程序里搜索Redux DevTools进行安装
新建store的时候,进行如下配置。
import { createStore, applyMiddleware ,compose} from 'redux';
import reducer from './reducer'
import thunk from 'redux-thunk'
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}) : compose;
const store=createStore(reducer,composeEnhancers(applyMiddleware(thunk)));
export default store;
最新文章
- 关于MVC的开源商城 Nop之闲聊
- 自定义View字段表头
- HTML5视频播放
- 100726A
- centos7 + VMware Workstation Pro
- Objective -C学习笔记 之copy(复制)
- jade编译乱码问题
- Android中BaseAdapter的基本用法和加载自定义布局!
- [OC Foundation框架 - 6] NSMutableString
- GUI练习——列出指定目录内容
- ftoa浮法成字符串
- asp.net mvc 上传附件验证
- 【HTTP权威指南】第三章-HTTP报文
- Adobe Html5 Extension开发初体验
- SpringMVC实现PUT请求上传文件
- 第五章 MySQL函数
- css 文本设置
- 996.icu,不加班的程序员有前途吗?
- python之count()函数
- 用mobiscroll.js的treelist实现弹出下拉效果
热门文章
- 通过 python ssh库连接并发送命令给设备
- 嵌套RecyclerView左右滑动替代自定义view
- Windows上通过bat调用jmx进行循环运行
- Flutter 布局(四)- Baseline、FractionallySizedBox、IntrinsicHeight、IntrinsicWidth详解
- 章节四、3-While循环-DoWhile语句
- Makefile中通过sed命令生成文件系统的selinux的配置文件vendor_filesystem_config.txt
- Html:html是什麽、html文件结构
- Response()的对象
- 剑指offer(java版)【转】
- ZooKeeper使用命令大全