Importing SVG files as React components with Vite

from blog Cassidy Williams, | ↗ original
↗ original
With create-react-app, it was easy to import SVG files as components. Now with Vite, you can do the same!