This example uses svg components without disabling SWC using @svgr/webpack to import .svg
files and rendering them as React components. @svgr/webpack.
Deploy the example using Vercel or preview live with StackBlitz
Execute create-next-app
with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example svg-components svg-components-app
yarn create next-app --example svg-components svg-components-app
pnpm create next-app --example svg-components svg-components-app
Deploy it to the cloud with Vercel (Documentation).