Created
February 11, 2022 08:44
-
-
Save archi14/269b771f6dda4d360f3a7a2b3cfd1687 to your computer and use it in GitHub Desktop.
number 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
export default (state=null, action)=>{ | |
if (action.type === 'GENERATE_NUMBER'){ | |
return action.payload; | |
} | |
return state; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment