Skip to content

Instantly share code, notes, and snippets.

@nanotroy
Created May 30, 2019 21:44
Show Gist options
  • Save nanotroy/8139cc17702954270bbbdfa31caed249 to your computer and use it in GitHub Desktop.
Save nanotroy/8139cc17702954270bbbdfa31caed249 to your computer and use it in GitHub Desktop.
const submit = h('button', {
props: { className: 'add-todo-submit' },
events: {
click: (e) => {
e.preventDefault()
// what to do?
}
},
children: [
text('Add')
]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment