The Composition API is coming to Vue 3 - but some companies, such as VueStorefront, have been using it for a while with the Vue 2 Composition API plugin.

In this video, he shares:

  • The differences between ref and reactive (and why ref works the way it does)
  • How to use the Composition API and composable functions
  • The differences between global vs local state in the composable functions (how global state can replace some uses of Vuex)
  • Examples from the VueStorefront Next codebase

Filip Rakowski, co-founder of VueStorefront, is here to explain the Composition API and how they’ve used it in the next version of their e-commerce framework.

Thanks for watching, and keep learning!

#composition api #vue #vuejs #javascript

How to use the Composition API and composable functions in Vue.js 3
122.65 GEEK