Convert multiple SVG files into React (.js) files. Place your SVGs in the root-level
svg/
directory, and run one of the scripts listed below to process your batch.
The single file script will create a single ./output/single/icons.js
file with each SVG available as an export.
The multiple file script will create individual files/components for each SVG in an ./output/single/<filename>
file. The multiple file script will also convert filenames which use dashes to PascalCase.
Single file:
yarn run start:single
multiple files:
yarn run start:multiple
Bugs reported on the project's issues page will be exterminated as quickly as possible, be sure to include steps to reproduce so they can be spotted easily.
MIT © SVG to React