Back to Qwik

Binding Expressions | Tutorial

packages/docs/src/routes/tutorial/component/binding/index.mdx

1.7.1314 B
Original Source

The purpose of components is to merge data with the JSX template. You use the {expression} to inject data into a template. Expressions are placed either as a text node or attribute on an element.

  • Bind data.name to the value attribute of <input/>.
  • Bind data.description to the value of <textarea/>.