Transform a SVG file into a React component using JSX transform to stdout

svgr

svgr --jsx-runtime automatic -- {{path/to/file.svg}}

click the source code to copy