Skip to content

Instantly share code, notes, and snippets.

@lwebber
Created October 6, 2019 23:37
Show Gist options
  • Save lwebber/c0542e9c89530fcc6d25880d4aaa1bc2 to your computer and use it in GitHub Desktop.
Save lwebber/c0542e9c89530fcc6d25880d4aaa1bc2 to your computer and use it in GitHub Desktop.
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