DEV Community

Discussion on: Handling Icons in React: Best Practices

Collapse
 
luka_pavlovic_8e5a1fbfc42 profile image
Luka Pavlovic

this explanation is incomplete... There should be the folder structure at the beginning.. After that there should be the explanation of the content inside the folder structure... After that the work flow... I can not see the link between individual SVG (from "src/svgs") and Icon (from "src/components/icons") or if the linkage between them is implicit that should be mentioned and explained little bit

Collapse
 
omar_hassan_bc8646963b691 profile image
Omar Hassan

The command converts svg icons from this folder and places them into the other folder

npx @svgr/cli src/svgs --out-dir src/components/icons --typescript