SVG icon converter to format required for use with react-icons package.
The source code was taken from react-icons/logics.js file and modified. The package name inspired by react-icons-converter.
¯\(ツ)/¯
npm i react-icons-converter
import { GenIcon } from 'react-icons';
import { createIconTreeFromSVG } from 'react-icons-converter';
const SVGSource = ` /* here will be the source code of your svg icon */ `;
const IconTree = createIconTreeFromSVG(SVGSource);
export const Icon = GenIcon(IconTree);