Created
February 25, 2019 13:18
-
-
Save joelcorey/b4c926280e41a90975432ab87e96c77e to your computer and use it in GitHub Desktop.
pseudo code outline
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
add items: | |
handleNewItemSubmit() | |
generate cuid(), pass value in to new key/value pair of global object to maintain state | |
call renderShoppingList() to update rendered state | |
check/uncheck items: | |
handleItemCheckClicked() | |
lookup by unique id, change necessary object value | |
call renderShoppingList() to update rendered state | |
delete items: | |
handleDeleteItemClicked() | |
lookup by unique id and remove from array | |
call renderShoppingList() to update rendered state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment