SVGR transforms SVG into ready to use components.
Refer to official documentation for detailed usage. →
Run the following command to produce components from SVG's.
This will transform SVG's at
.tsx components, puts them in
src/components/icons ignoring existing ones.
After adding new SVG icons, you must run the following command again to produce components for newly added SVG's.
All this work will be handled automatically by superplate, so you don’t need to do anything extra as long as you choose SVGR plugin during the project creation phase.
If you didn't choose the SVGR plugin during project creation phase, you can follow the instructions below to add it.
Add command to scripts
Then run the following command