Skip to content

Instantly share code, notes, and snippets.

@iazel
Created July 11, 2019 21:31
Show Gist options
  • Save iazel/1da8097fb6769223ae79a0869d1122c0 to your computer and use it in GitHub Desktop.
Save iazel/1da8097fb6769223ae79a0869d1122c0 to your computer and use it in GitHub Desktop.
Composable Reactive UI / Input with Store
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