Skip to content

Instantly share code, notes, and snippets.

@Chalarangelo
Last active October 31, 2017 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chalarangelo/b417c8c3487ff43c4556c07d368316ab to your computer and use it in GitHub Desktop.
Save Chalarangelo/b417c8c3487ff43c4556c07d368316ab to your computer and use it in GitHub Desktop.
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