Building Applications With The Vue 3 Composition API

With the imminent release of Vue 3, this is a great time to build an app with the new Vue 3 Composition API. While this change in how you can build components is one of Vue 3’s biggest features, here are some other key benefits of this version:

  • Smaller and faster.
  • Improved TypeScript support.    
  • Exposes lower-level APIs.   
  • Apps will be more maintainable. 
Let’s get back to the Composition API by building a simple TODO application. Look at the blocks below for a high-level difference between a component written with the Composition API, and the older Options API. We’ll dive into additional details as we build the application.

Options API with Vue 2