2.0.3 • Published 5 years ago
@balajmarius/svg2jsx v2.0.3
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