Created
August 17, 2017 11:18
-
-
Save arifkoken/091e6c5923d03a5105da3b82f8db728a 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 { SAYI_DEGISTIR } from '../actions/types'; | |
const INITIAL_STATE = { | |
sayi: '0', | |
}; | |
export default (state = INITIAL_STATE, action) => { | |
switch (action.type) { | |
case SAYI_DEGISTIR: | |
return { ...state, sayi: action.payload }; | |
default: | |
return state; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment