Created
July 11, 2019 20:30
-
-
Save iazel/c377c6e2eea96fc8a2bb37670f94d514 to your computer and use it in GitHub Desktop.
Composable Reactive UI / Input reactive
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, 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