Re:3D Wireframes Using SVG
by news_hacker on Monday July 08, 2019 @08:15PM
(#20387928)
Ah I've been looking for something like svg2jsx for a while... thanks for sharing!
It was one of those moments where I knew someone out there MUST'VE made a tool for it, but it was a discoverability problem.
You can also take a look at this: https://svgr.now.sh/ It converts SVG to both react and react-native.
I ran the 4 shape example through SVGOMG and lowered the precision slider down until it didn't affect the perceived output.
The result was about 40% of the original size.
https://jakearchibald.github.io/svgomg/
SVG tested:
https://camo.githubusercontent.com/ffa6eed9348fcd42454fc3916...
Side note -- if using React, svg2jsx is great for converting the SVG properties to React JSX names.
https://svg2jsx.herokuapp.com/