Skip to the content

Lesson 8 of 21 · Markup

Input and binding

bind: connects an input to a place. A change in the input writes the place, and a write to the place updates the input.on:submit runs when a person presses Enter in the field.Your turn
  • Bind the Input to draft.
  • Add a Toggle that binds shout: <Toggle bind:checked={shout}>Shout</Toggle>.
Preview
1 error
The sandbox needs a browser.