A live coding demo to showcase Vue Composition API and maybe address FUD if that’s still relevant.
Resources: https://vue-composition-api-rfc.netlify.com https://github.com/vuejs/composition-api https://github.com/znck/dogsay
Composition API
View Slide
Why do weneed one more API?
We had problems!Code OrganisationLogic Extraction
Options Based APIComponent Logic can be split in 6-10 options.data, props, computed,methods, watch and life cyclemethods
Logic ExtractionThere is no efficient logicextraction mechanism in current API.
Problems withMixinsNamespace CollisionObscure and unclear origin
Problems withMixin FactoriesNamespace CollisionObscure and unclear origin
Problems withScoped SlotsLocked in TemplatesMultiple SourcesLimited Intellisense
Problems withType Inferencethis type is complexLimited Intellisense
How doesComposition API solve this?
Crash CourseJavaScriptdefine functioncall functions
Crash CourseComposition APIdefine functioncall functions
Code
Resourcesvue-composition-api-rfc.netlify.comgithub.com/vuejs/composition-apigithub.com/znck/dogsay