DEV Community

loading...

Discussion on: Create ToDo App With Vue 3 Composition API

Collapse
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.

Collapse
chandragie profile image
chandragie

Thanks for explaining! Gonna learn Vue 3 soon!