Skip to content

Instantly share code, notes, and snippets.

@rbiggs
Created February 3, 2019 17:47
Show Gist options
  • Select an option

  • Save rbiggs/70659b3b66d959bcac5d5e755d6fc6d2 to your computer and use it in GitHub Desktop.

Select an option

Save rbiggs/70659b3b66d959bcac5d5e755d6fc6d2 to your computer and use it in GitHub Desktop.
Adding an event to the Add button to send a message
<button class="add-item" onclick={() => send({type: 'addItem'})}>Add</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment