在为 react-native 设置 Redux devTools 时需要帮助我在这里有非常简单的 reducer 和 createStore,我尝试合并 redux-devtools-extension,所以我可以调试我的 react-native 应用程序,但我在 Redux 中得到“store no found”标签
import { createStore, applyMiddleware} from 'redux'
import {reducer} from "./reducers"
import { composeWithDevTools, devToolsEnhancer } from 'redux-devtools-
extension'
let store = createStore(reducer, devToolsEnhancer());
export const reducer = (state=[], action) => {
switch(action.type) {
case "ADD_MEMBER":
return [...state, {categoryID: 0, name: "Bill", zip: "27733", id: 4}]
default:
return state
}
return state;
}