![]() ![]() The Composition API is just an addition to the language that was created to address the limitations of the Options API used in Vue 2. Just to get the obvious concern out of the way, this new API will not break current Vue 2.x options-based code! We can even continue to use the Options API in Vue 3. At the end, we'll build two versions of the same component: one with the Composition API and one with the options-based API! In this article, we'll take a look at why the Composition API was introduced, how it works, and how it compares to the options-based API. It has since simmered down, but what is the Composition API anyway?Īlthough Vue 3, in its entirety, hasn't been released yet, the Composition API is already out and ready to use. The announcement of a new API, the Composition API, resulted in some controversy in the Vue community. The long-awaited Vue.js 3 is scheduled for release in the 1st quarter of 2020.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |