Created
October 6, 2019 23:37
-
-
Save lwebber/c0542e9c89530fcc6d25880d4aaa1bc2 to your computer and use it in GitHub Desktop.
This file contains 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
add items | |
collect the input the user types in | |
store it in STORE | |
render the shopping list (with the updated STORE) | |
check/uncheck items | |
'listen' for the user's action on the 'check' button | |
toggle the item's state in STORE (checked or unchecked, based on whether it's already checked) | |
toggle the class the applies the strikethrough style | |
render the shopping list (with the updated STORE with the updated items) | |
delete items | |
'listen' for the user's action on the 'delete' button | |
remove the item from STORE | |
remove the item from the DOM | |
render the shopping list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment