Question · Vue.js course · Module 11: Pinia

Composition vs Options API

What is the main difference between a Composition API and Options API store in Pinia?

Answer options

  • Composition API uses ref/computed/function instead of state/getters/actions
  • There is no difference, it is the same syntax
  • Composition API does not support getters
  • Options API is faster

You can check the correct answer by solving this task in the CodeWorlds game.