Let’s take a look at how we can convert the Options API to the Composition API in Vue 3. To demonstrate this, we’ll start off with a Todo app written with the traditional Options API, convert it over to the Composition API, and then make use of script setup to clean it up even more.
The Composition APIScript Setup
