Last active
January 22, 2019 17:00
-
-
Save hedgerh/df54ce99bf8f596fe09dec2fa0002e40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import store from './store' | |
export default class HttpClient { | |
getUser() { | |
const token = store.getState() | |
// fetch and pass along your token | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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