import { createStore, combineReducers } from "redux";
import trackFormReducer from "./reducers/trackFormReducer";
const rootReducer = combineReducers({
trackFormReducer: trackFormReducer
});
const store = createStore(
rootReducer /* preloadedState, */,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
export default store;
and
import { Provider as StoreProvider } from "react-redux";
and wrap the app component by StoreProvider
No comments:
Post a Comment