Skip to content

Instantly share code, notes, and snippets.

@iazel
Created July 11, 2019 20:30
Show Gist options
  • Save iazel/c377c6e2eea96fc8a2bb37670f94d514 to your computer and use it in GitHub Desktop.
Save iazel/c377c6e2eea96fc8a2bb37670f94d514 to your computer and use it in GitHub Desktop.
Composable Reactive UI / Input reactive
import { h, sc2, props } from '@crui/reactive/elems'
import { StreamBox } from '@crui/reactive/rx/box'
import { bindValue } from '@crui/reactive/setups/bind'
const $box = new StreamBox('')
const input = h('input', sc2(
props({ className: 'add-todo-input' }),
bindValue($box)
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment