Last active
July 11, 2019 20:46
-
-
Save iazel/76bcf4e3c8e5737d9a96d7dc185a863c to your computer and use it in GitHub Desktop.
Composable Reactive UI / Submit
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
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