jhamlet / svg-react-loader

Webpack SVG to React Component Loader
MIT License
559 stars 82 forks source link

react gives errors on unknown props #37

Closed Inoir closed 8 years ago

Inoir commented 8 years ago

Maybe its possible to check the imported svg for non svg properties and remove them?

react 15.2.0 added:

Add warning for unknown properties on DOM elements

Unknown prop warning

jhamlet commented 8 years ago

This should be fixed with the next version. (It doesn't use any special attributes to manage non-react attributes on component mounting.)

Try npm install svg-react-loader@next to see if this goes away.