Created
July 11, 2019 21:31
-
-
Save iazel/1da8097fb6769223ae79a0869d1122c0 to your computer and use it in GitHub Desktop.
Composable Reactive UI / Input with Store
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 { cloneRW } from '@crui/reactive/rx/box/clone' | |
const input = (store: TodoStore) => | |
h('input', sc2( | |
props({ className: 'add-todo-input' }), | |
bindValue(cloneRW(store.getInput())) | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment