Vân Anh Nguyen
Member
How do I use SVG in styled components?
Answer
The styled components way.
…
The gotchas
Answer
The styled components way.
…
The gotchas
- You should remove any id props from every svg element.
- Watch out for props like fill-rule and stroke-width. …
- Some icons use style definitions instead of props (fill, stroke, …), in which case, you should convert the style definitions into props.