Skip to content

Instantly share code, notes, and snippets.

@joelcorey
Created February 25, 2019 13:18
Show Gist options
  • Save joelcorey/b4c926280e41a90975432ab87e96c77e to your computer and use it in GitHub Desktop.
Save joelcorey/b4c926280e41a90975432ab87e96c77e to your computer and use it in GitHub Desktop.
pseudo code outline
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