Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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