Build a reactive interface with the Vue Composition API

8 steps · about 2 h 45 min · Beginner

  1. Try Vue in the browser (interactive, Vue.js, 45 min)

    Work through the interactive steps first to feel templates and reactivity before any local setup.

  2. Create a local Vue project (doc, Vue.js, 15 min)

    Scaffold a project with the official tool and learn the role of each generated file.

  3. Hold state with ref and reactive (doc, Vue.js, 25 min)

    Understand what makes a value reactive and why reassigning a reactive object loses tracking.

  4. Derive values with computed properties (doc, Vue.js, 15 min)

    Replace duplicated template logic with cached derived values that update on their own.

  5. Render lists with stable keys (doc, Vue.js, 15 min)

    Use v-for with keys so reordered or filtered items keep their state.

  6. Bind form inputs with v-model (doc, Vue.js, 15 min)

    Connect text fields, checkboxes and selects to state in both directions.

  7. Pass data down with props (doc, Vue.js, 20 min)

    Split the app into components and declare typed props, keeping data flow one-way.

  8. Send changes up with emitted events (doc, Vue.js, 15 min)

    Let child components report changes so the parent stays the owner of shared state.