As far as I know, one way to optimize your Vue app is to use functional components. This kind of components are instanceless and stateless, which means you have a different way to handle props. There are no lifecycle hooks, no methods, no computed properties etc..
I personally use functional components when I only want to display data. There might be some other use cases as well.
Interesting approach!
As far as I know, one way to optimize your Vue app is to use functional components. This kind of components are instanceless and stateless, which means you have a different way to handle props. There are no lifecycle hooks, no methods, no computed properties etc..
I personally use functional components when I only want to display data. There might be some other use cases as well.
Thanks for sharing!
Totally right! But to experiecne the difference you need a lot of these components.
More info: slides.com/akryum/vueconfus-2019#/3 - Demo at vue-9-perf-secrets.netlify.com/ben... (all credits to @akryum )
PS: In Vue 3, the performance for functional components will be "marginally better" compared to normal components
Thanks for referring to some great resources!
Speaking of which, what do you think of Vue 3?