termtrick.com
Run
API
Facebook
Twitter
LinkedIn
Copy link
Transform a SVG file into a React component using TypeScript to stdout
svgr
Transform SVGs into React components.
More information: <https://react-svgr.com>.
Trick copyright:
tl;dr; <
https://github.com/tldr-pages/tldr
>
svgr --typescript -- {{path/to/file.svg}}
click the source code to copy