DEV Community

Discussion on: 5 things I struggled with when learning React with a Vue background

Collapse
 
seangwright profile image
Sean G. Wright

Correct, you can use both the Options API and the Composition APIs in the same app.

There is a community library that brings together many common composables for easy re-use. Having used it in a couple apps, I can say it's wonderful and really proves out the way they've been designed for Vue 3.

vueuse.org/functions.html

Here's some examples of the <script setup> syntax, which I've also adopted and found to be great for removing boilerplate.

v3.vuejs.org/api/sfc-script-setup....