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.
In development mode a scary warning gets generated by using a Text component with a DOM type:
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.