Skip to content

Instantly share code, notes, and snippets.

@iazel
Last active July 11, 2019 20:46
Show Gist options
  • Save iazel/76bcf4e3c8e5737d9a96d7dc185a863c to your computer and use it in GitHub Desktop.
Save iazel/76bcf4e3c8e5737d9a96d7dc185a863c to your computer and use it in GitHub Desktop.
Composable Reactive UI / Submit
import { h, sc, props, onClick, ctext } from '@crui/core'
const submit = h('button', sc([
ctext('Add')
props({ className: 'add-todo-submit' }),
onClick((e) => {
e.preventDefault()
// what to do?
}),
]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment