Harsh pathakharshpathak.hashnode.dev·Aug 8, 2023Using SVG files as React Components using ViteIf you have recently shifted to Vite from CRA as advised by React Documentation, you can not import SVGs directly as React components. But it's still possible with the help of vite plugins: Create a Vite project yarn create vite my-vue-app --templa...668 readsviteAdd a thoughtful commentNo comments yetBe the first to start the conversation.