Skip to content

Instantly share code, notes, and snippets.

@JaySunSyn
Created January 17, 2018 17:14
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 JaySunSyn/095b5ed4085eaee860db8a2f78f1114f to your computer and use it in GitHub Desktop.
Save JaySunSyn/095b5ed4085eaee860db8a2f78f1114f to your computer and use it in GitHub Desktop.
Step 2
<script>
(() => {
const add = (todo) => {
return {
type: 'ADD_TODO',
todo: {text: todo},
};
};
const remove = (todo) => {
return {
type: 'REMOVE_TODO',
todo: todo,
};
};
App = window.App || {};
App.actions = {
add,
remove,
};
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment