Transform all SVG files from a directory to React components into a specific directory without generating an index file

svgr

svgr --out-dir {{path/to/output_directory}} --no-index {{path/to/input_directory}}

click the source code to copy