Skip to content

Instantly share code, notes, and snippets.

@iazel
Created July 11, 2019 20:23
Show Gist options
  • Save iazel/968ecc083418274ec3703430758b6281 to your computer and use it in GitHub Desktop.
Save iazel/968ecc083418274ec3703430758b6281 to your computer and use it in GitHub Desktop.
Composable Reactive UI / Input with event
import { h, sc2, props, on } from '@crui/core'
const input = h('input', sc2(
props({ className: 'add-todo-submit' }),
on('input', (e) => doSomething(e)),
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment