Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Difference with Babel plugin? #9

Open
juandc opened this issue May 1, 2018 · 2 comments
Open

Difference with Babel plugin? #9

juandc opened this issue May 1, 2018 · 2 comments

Comments

@juandc
Copy link

juandc commented May 1, 2018

I've always used the Inline React SVG plugin for using SVGs in my Reactjs projects.

So, in simple words: Why should I use pixo for converting my SVGs to React Components instead of using directly the SVGs with the babel plugin? Is there an Advantage or is just an alternative?

@jxnblk
Copy link
Member

jxnblk commented May 1, 2018

Haven’t used this personally, but sometimes it’s nice to build a package of icon components from SVG files that is consumed by other apps. Seems like the Babel plugin doesn’t have a template option either, if I’m not mistaken

@jxnblk
Copy link
Member

jxnblk commented May 1, 2018

Also this uses a different/simpler/more limited optimization strategy than svgo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants