Last active
October 31, 2017 12:34
-
-
Save Chalarangelo/b417c8c3487ff43c4556c07d368316ab 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
const posts = (state = [], action) => { | |
let posts = []; | |
switch(action.type){ | |
case VIEW_ALL: | |
// TODO: Return all posts | |
return posts; | |
case SEARCH_POST: | |
// TODO: Return posts matched in search | |
return posts; | |
default: | |
return state; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment