Created
October 12, 2020 19:09
-
-
Save YounglanHong/79197f9762cf376e511232c5055b34c2 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 { ADD_CARD, SHOW_CARD } from "../actions/cardActions.js"; | |
const reducer = (state = initialState, action) => { | |
switch (action.type) { | |
case SHOW_CARD: | |
return Object.assign({}, state, { cards: action.cards }); | |
// ... | |
} | |
}; | |
export default reducer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment