Transform a SVG file into a React component using TypeScript to stdout

svgr

svgr --typescript -- {{path/to/file.svg}}

click the source code to copy