Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. import { h, sc, props, onClick, ctext } from '@crui/core'
  2.  
  3. const submit = h('button', sc([
  4. ctext('Add')
  5. props({ className: 'add-todo-submit' }),
  6. onClick((e) => {
  7. e.preventDefault()
  8. // what to do?
  9. }),
  10. ]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement