📜  redux devtools - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:11.283000             🧑  作者: Mango

代码示例6
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';

const store = createStore(reducer, composeWithDevTools(
  applyMiddleware(...middleware),
  // other store enhancers if any
));