Vue introduces Composition API (Function-based API) as an addition to current Options-based API. The API will be released with Vue 3, but now you can try it with Vue 3 Composition API added to your Vue 2 app. In this tutorial, we’re gonna show you:
- New Vue Composition API overview and comparison with classic Vue Options-based API
- Examples to implement a Vue Component with new API: props, data, watchers, lifecycle hooks
- Example to take advantage of new Vue 3 Composition API (function-based API): split Topics into Functions
Related Posts:
– Vue v-slot tutorial with examples
– Vue 3 CRUD example with Axios & Vue Router
– Vue 3 Authentication with JWT, Vuex, Axios and Vue Router