Composition API plugin for Vue 2
The @vue/composition-api is a Vue 2 plugin that brings the Composition API to Vue applications. With the release of Vue 2.7, which includes the Composition API built-in, this plugin is now entering maintenance mode and will only support Vue 2.6 or earlier until it reaches End of Life by the end of 2022.
npm install @vue/composition-api
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<script src="https://cdn.jsdelivr.net/npm/@vue/composition-api"></script>
The @vue/composition-api is a useful plugin for Vue 2 applications that allows developers to leverage the Composition API. With support for TypeScript and SSR implementation, this plugin ensures compatibility with modern browsers and provides workarounds for certain limitations in Vue 2.