DEV Community

Discussion on: Why you should be using Vue's new Composition API

Collapse
 
alexmercedcoder profile image
Alex Merced

The composition API is 10x easier to use if you use the experiemental setup attribute.

‘’’
</setup><br> ‘’’</p> <p>In this situation the script tag is the setup function and looks a like cleaner, you can try this in the ‘npm init vite’ Vue template which has this out of the box</p>

Collapse
 
anatoly_bright_387348a2e1 profile image
Anatoly Bright

Composition API is 10x more code soup than options API.