Created
July 26, 2018 11:47
-
-
Save vschoener/f30ddb9d4e5bbed3bb939a4fc7be85e7 to your computer and use it in GitHub Desktop.
reducer
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 authReducer, { AuthStateInterface } from '../components/auth/authReducer'; | |
// Interface inside my reducer file | |
// export interface AuthStateInterface { | |
// authenticated?: string | null; | |
// } | |
export interface IAppState { | |
//... Other state you need here | |
auth: AuthStateInterface; | |
} | |
const rootReducer = combineReducers<IAppState>({ | |
auth: authReducer, | |
}); | |
export default rootReducer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment