npm install composition api code example Example: npm install composition apiu npm install @vue/composition-api # or yarn add @vue/composition-api