SHARE
TWEET

Untitled

a guest Apr 25th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { applyMiddleware, createStore } from "redux";
  2. import { createSyncMiddleware, syncStore } from "redux-browser-extension-sync";
  3. import rootReducer from "../reducers/index.js";
  4.  
  5. const syncMiddleware = createSyncMiddleware();
  6.  
  7. const store = syncStore(createStore(
  8.     rootReducer,
  9.     applyMiddleware(syncMiddleware)
  10. ));
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top