Skip to content

Instantly share code, notes, and snippets.

Last active Jan 22, 2019
What would you like to do?
import store from './store'
export default class HttpClient {
getUser() {
const token = store.getState()
// fetch and pass along your token
import { combineReducers, createStore } from 'redux'
import { authReducer, userReducer, exampleReducer } from './reducers'
const reducer = combineReducers({
auth: authReducer,
user: userReducer,
example: exampleReducer,
export default createStore(reducer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment