- 科学上网在chrome商店中安装
- 然后你的控制台会多一个redux的选项
- 进如gitHub上搜索redux-devtools-exten
- 里面的1.2Advanced stote setup 教你使用
- 在项目中找到stroe文件夹中的index.js文件
-
import { createStore , compose} from 'redux'; import reducer from './reducer' const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; const store = createStore(reducer,composeEnhancers()) export default store;
redux使用Redux DevTools
最新推荐文章于 2025-04-14 10:17:47 发布