DEV Community

Discussion on: Create ToDo App With Vue 3 Composition API

burakgur profile image
Burak Gür Author

Normally, we use options api with vue 2. Options api included data, mounted, created etc. functions. On the other hand, composition api is included setup function. And then setup function is included onMounted, onBeforeMount, custom methods, ref definitions, etc. We cannot use ref outside of the setup function.

chandragie profile image

Thanks for explaining! Gonna learn Vue 3 soon!