Importing SVG files as React components with Vite

Published a blog post
With create-react-app, it was easy to import SVG files as components. Now with Vite, you can do the same!