Evo-Forge / Essence

Essence - The Essential Material Design Framework
MIT License
416 stars 51 forks source link

Text component generates unknown props warning in React 15.2.0 #65

Open mapguy109 opened 8 years ago

mapguy109 commented 8 years ago

In development mode a scary warning gets generated by using a Text component with a DOM type:

Warning: Unknown props `classes`, `badge` on <span> tag. Remove these props from the element. For details, see https://fb.me/react-unknown-prop
    in span (created by Text)
    in Text (created by MyComponent)
[snip]

Per the warning documentation, this can be worked around by either filtering the passed props via a {type, badge, ...rest} = this.props construct or not passing props to raw DOM elements.

Might pull request this eventually, but it seems like low priority since it's primarily a developer warning to prevent dumb mistakes.

andris310 commented 7 years ago

Still happening with React 15.4.2. So far found it on and