Build a reactive interface with the Vue Composition API
8 steps · about 2 h 45 min · Beginner
- 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.
- 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.
- 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.
- Derive values with computed properties (doc, Vue.js, 15 min)
Replace duplicated template logic with cached derived values that update on their own.
- Render lists with stable keys (doc, Vue.js, 15 min)
Use v-for with keys so reordered or filtered items keep their state.
- Bind form inputs with v-model (doc, Vue.js, 15 min)
Connect text fields, checkboxes and selects to state in both directions.
- Pass data down with props (doc, Vue.js, 20 min)
Split the app into components and declare typed props, keeping data flow one-way.
- 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.