Skip to content

Instantly share code, notes, and snippets.

Avatar
🍩

Cory Danielson CoryDanielson

🍩
  • Sprout Social
  • EARTH, MILKY WAY, ∞
View GitHub Profile
@CoryDanielson
CoryDanielson / actions.js
Created May 24, 2016
Redux reducer with dispatch table
View actions.js
export const ActionTypes = {
ADD_TODO: 'ADD_TODO',
REMOVE_TODO: 'REMOVE_TODO'
};
export function addTodo(todo) {
return { type: ActionTypes.ADD_TODO, payload: { todo } };
}
export function removeTodo(todo) {
You can’t perform that action at this time.