You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use defaultProps instead of adding props to the svg
Currently, when transforming an SVG file that has attributes on the
top-level `<svg>` element, the transformed component ends up looking
something like this:
```js
_extends({
xmlns: 'http://www.w3.org/2000/svg',
viewBox: '0 0 1000 1000'
}, props),
```
this adds the overhead of _extends. I think it might be a better to
instead move these values into `defaultProps` on the generated
component.
Closes#7
0 commit comments