Composition API vs. Options API - One API to Rule Them All?!

Описание к видео Composition API vs. Options API - One API to Rule Them All?!

💪 This week was a lot of discussion about the two Vue APIs - the Composition and the Options API - on Social Media. Thus, I took some time to assess the shared thoughts + discussions and also went a step further: I asked you why you prefer the Options API and wanted to figure out pain points you have with the Composition API.

The results are all distilled in this video, including what the Vue team and Evan say about the API topic, how the future might look like and my personal opinion (at the very end).

Important Disclaimer: I am not part of the Vue core team (but the Nuxt team). I researched all quotes and facts with care, links are commonly below to the topics, tweets and posts!

#vuejs

---
Links

🔗 FREE VueSchool Composition API Course - https://vueschool.io/courses/vue-js-f... *
🔗 Justin’s Proposal https://x.com/jpschroeder/status/1797...
🔗 Justin Doubling Down https://x.com/jpschroeder/status/1798...
🔗 Vue Docs on deprecating Options API https://vuejs.org/guide/extras/compos...
🔗 Evan Clarifying CAPI vs OAPI https://x.com/youyuxi/status/17985422...
🔗 Vue Docs - Why Composition API? https://vuejs.org/guide/extras/compos...
🔗 Unplugin for script setup https://github.com/unplugin/unplugin-...
🔗 Cory House SOC https://x.com/housecor/status/1256348...
🔗 Infographic Vue SOC OAPI https://img.lichter.io/infographics/v...
🔗 Infographic Vue SOC CAPI https://img.lichter.io/infographics/v...
🔗 Infographic Vue SOC Both https://img.lichter.io/infographics/v...

📺 Organizing Code with the Composition API    • Organize your Composition API code (2...  
📺 You probably use useFetch wrong    • You are using useFetch WRONG! (I hope...  
📺 ‪@DejaVueFm‬ Episode 011 about Learning new Vue Features    • DejaVue #E011 - Learning new Vue Feat...  

Don't forget to hit that "Subscribe" button, ring the notification bell and give a thumbs up!

🌐 Connect further:
Website: https://www.lichter.io
Twitter/X:   / thealexlichter  
Twitch:   / thealexlichter  

---
Chapters

00:00 Intro
00:39 Should People Learn the Options or Composition API?
01:39 Will the Options API Go AWAY?
05:17 Why NOT Using the Composition API?
05:44 Argument One: Legacy
07:55 Argument Two: Compatibility
08:39 Argument Three: Reactivity
11:20 Argument Four: Structure / Messy Code
13:45 Separation of Concerns
17:56 Further Benefits of the Composition API
19:50 The Ecosystem
21:24 My Personal Opinion
24:39 Summary

---
Notice

Links marked with * are affiliate links. I get a small commission when you register for the service through our link. This helps to keep the YouTube channel running. I only include affiliate links for services mentioned in the video which I use myself and/or vouched!

Комментарии

Информация по комментариям в разработке