News for hackers. Stuff that matters.
Re:SVG2JSX – Convert SVG to Valid React SVG by desdiv on Wednesday May 03, 2017 @09:39PM (#14261768)
>oh, noticed `0.5` turn into `.5` and `black` turn into `#000`. not sure how that will make it more JSX compatible

That's for minimizing code size. In both of your examples one byte is shaved off.

Arguably this is a case of premature optimization though. For production, the Closure compiler will do a far better job at it. For development, you won't notice the difference of shaving off a few kilobytes.

There are no comments on this comment yet.