SHARE
TWEET

Untitled

a guest Jun 25th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import firebase from 'firebase/app';
  2. import 'firebase/auth'
  3. import 'firebase/database'
  4. import { createStore, compose, applyMiddleware } from 'redux';
  5.  
  6. import firebaseMiddlware from './firebaseMiddlware';
  7.  
  8. const initialState = {};
  9.  
  10. const firebaseConfig = {};
  11. firebase.initializeApp(firebaseConfig)
  12.  
  13. const createEnhancedStore = compose(
  14.   applyMiddleware(firebaseMiddlware(firebase)),
  15. )(createStore)
  16.  
  17. const rootReducer = combineReducers({}); // Add reducers here
  18.  
  19. export const store = createEnhancedStore(rootReducer, initialState);
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top