Hacker News new | past | comments | ask | show | jobs | submit login

Not the person you're replying to - but in my experience, it can be easier to put the SVG in a component by itself to make changes to it wherever it may be used by just navigating to the path of the SVG itself rather than digging up the actual component it's used in.

There are very minor differences between what's a valid SVG and what's valid JSX, and web apps like this one will often offer to translate those fields for you as well as add the rest of the "component stuff" to make it copy-pastable.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: