2

Creating a Todo List App

Now that we have a development environment set up, we will get started with writing a small first application. In this chapter, we will create a Todo list app, which will teach us how the reactivity of Vue.js and the virtual DOM works. You can use the Todo list app as a guide to track progress in this book!

Let’s make it an assignment with some practical requirements:

  • We will make sure that you see a list of items
  • Each item will have a checkbox
  • The list will be sorted by unchecked items first and checked items second
  • The status of an item should be preserved by the browser on future visits

There are different ways of writing a valid Vue.js component. Currently, the Composition API is preferred over the Options API. ...

Get Building Real-World Web Applications with Vue.js 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.