Input Binding
The Duck way of input binding.
Demo
live demo | files
Interactive Demo
Enter a value...
Recipe
Walkthrough
To perform input binding in Duck, use a store and a component.
The store tracks the state of the input, while the component simply wraps a traditional input element.
When text is entered into the input component, you update the store.
When the store value is updated, you update the input component.
The
App
component here is used as a container to bring it all together.