Level 54
@martinzeltin theres a series in laracasts which covers changes in vue3
https://laracasts.com/series/whats-new-in-vue-3
and also a lesson covering the composition api.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Vue 3.0 is out! Yay! As far as I understand, the Composition API allows for code reuse, right?
So what advantage does the Composition API have over a simple imported class that is shared across components?
Can’t I simply do this if I want to reuse code? Why do I need composition api?
import Shared from './shared.js'
class Shared {
sharedFunction()
{
}
}
export default Shared
Please or to participate in this conversation.