In React 15.2 you get warning errors for unknown props
See original GitHub issueWarning: Unknown props styleName
, initialContent
, contentDidMount
, contentDidUpdate
on <iframe> tag. Remove these props from the element
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
Unknown Prop Warning - React
The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as...
Read more >React 15.2 Unkown Prop Warning · Issue #517 - GitHub
We are now raising the following error for each instance of the date-picker. ERROR: 'Warning: Unknown props `date`, `locale`, `minDate`, ...
Read more >How to fix React 15.2.0 “unknown DOM property” warning in ... - Twitter
It won't be removed, the problem is when you pass arbitrary props to DOM components.
Read more >react-redux connect pattern to avoid unknown props warning ...
I just solved the same issue. The dispatch prop is there because you are not providing mapDispatchToProps when you call connect() .
Read more >Check for extraneous props in React (and save hours of ...
This article explains how to check that all props passed down to your React components are the right ones, so you never wonder...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Published v0.6.2
I think all we have to do is to remove
head
andmountTarget
fromprops
variable. We don’t get warning as long as we use standard attributes(ex. src, width, height …) (cf: https://facebook.github.io/react/docs/tags-and-attributes.html)