Skip to content

Instantly share code, notes, and snippets.

@pfftdammitchris
Created August 25, 2019 14:20
Show Gist options
  • Save pfftdammitchris/004c7ef287e1c005aaa17672fbde9afe to your computer and use it in GitHub Desktop.
Save pfftdammitchris/004c7ef287e1c005aaa17672fbde9afe to your computer and use it in GitHub Desktop.
const authReducer = (state, action) => {
switch (action.type) {
case 'set-authenticated':
return { ...state, authenticated: action.authenticated }
default:
return state
}
}
export default authReducer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment