README
svg2jsx 🌜
Transform SVG into valid JSX
transform(svg, config)
Parameters
- svg
StringThe SVG string to be transformed - config
Map- type
functional | classThe type of the resulting component - jsxSingleQuote
BooleanEither double or single quotes in JSX attributes
- type
Returns
Promise<String> JSX string