web
web copied to clipboard
refactor (components): components used to render svg can be functional components.
Hello everyone 👋
I was looking at the components under the directory /packages/vue and found that there are SFCs that only render an SVG icon.
Some examples of this are:
- SpChevronDown
- SpChevronRight
- SpKeplrIcon
- SpLinkIcon
- ...and many more
Changing them to functional components will improve performance as these will be treated as stateless, without any component instance, HTML.
If you choose to acknowledge this issue, I'd be happy to create a PR fixing this.