Created
January 17, 2018 17:14
-
-
Save JaySunSyn/095b5ed4085eaee860db8a2f78f1114f to your computer and use it in GitHub Desktop.
Step 2
This file contains hidden or 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
<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