jpkleemans / vite-svg-loader

Vite plugin to load SVG files as Vue components
MIT License
557 stars 59 forks source link

Creating functional component #6

Closed atilkan closed 3 years ago

atilkan commented 3 years ago

Is there any reason to create components without functional attr?

jpkleemans commented 3 years ago

Hi, thanks for your issue.

In Vue 3, the performance gain when using functional components is negligible. See https://v3.vuejs.org/guide/migration/functional-components.html#overview