I started using Composition API with TypeScript last year and damn - that was great experience. Not only because code looks "cooler" and cleaner but also with fact that you can much easier split your code into single "plugins".
With this you can move things like onMounted etc. to separated files and implement those without any problem to any component you want.
There is one great thing that was implemented in 3.2 - <script setup> which transforms your code from this:
I started using
Composition API
withTypeScript
last year and damn - that was great experience. Not only because code looks "cooler" and cleaner but also with fact that you can much easier split your code into single "plugins".With this you can move things like
onMounted
etc. to separated files and implement those without any problem to any component you want.There is one great thing that was implemented in 3.2 -
<script setup>
which transforms your code from this:to this:
You don't need to use Composition API, sure but I think you will :D