Documentation(svg
): Migration from svgr
or inlined in JSX SVG
#128
Labels
scope:svg
Issues related to svg
svg
): Migration from svgr
or inlined in JSX SVG
#128
Case 1 - SVGR
Users have SVG sources and generate SVG-in-JS with a CLI or loader.
Problem: How can they migrate?
Solution: Perform step-by-step replacement and comparison.
Case 2 - Inlined JSX SVG
Users have some inlined SVG but lack the original SVG sources.
Problem: SVG in JSX has distinct attributes (e.g., strokeWidth instead of stroke-width).
Solution: Provide an example script to convert it into native SVG.
The text was updated successfully, but these errors were encountered: