score:2

import { loadState, saveState } from "where theyare"
const syncWithDBstate= loadState();

const store = createStore(
  rootReducer,
  syncWithDBstate,
  composeWithDevTools(applyMiddleware(thunk)) // here I am suing the chrome devtool extention
);

store.subscribe(() => {
saveState(store.getState());
});

Related Query

More Query from same tag