Warning:: React.PropTypes validation
See original GitHub issueHi !! i’m having this warning on webbrower dev console
“Warning: You are manually calling a React.PropTypes validation function for the color
prop on SparklinesLine
. This is deprecated and will not work in the next major version. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.” bundle.js:38532:10
Issue Analytics
- State:
- Created 7 years ago
- Reactions:7
- Comments:6
Top Results From Across the Web
Don't Call PropTypes Warning - React
In this case, ThirdPartyPropTypes.deprecated is a wrapper calling PropTypes.bool . This pattern by itself is fine, but triggers a false positive because React...
Read more >How to validate React props using PropTypes - LogRocket Blog
Learn how to validate props with React PropTypes, React's internal mechanism for adding type checking to component props.
Read more >React.PropTypes validation warning · Issue #484 - GitHub
I have react@15.3.1 and react-redux@4.4.5 in my project and got the following warning: warning.js:36 Warning: You are manually calling a React.PropTypes ...
Read more >Conditional rendering and warning when using propTypes ...
In your case it will return false when the user is not logged in, and you still expect to get a valid React...
Read more >How to avoid React.Proptypes warning | by Sergio Zamarro
As the warning says React.Proptypes is dreprecated in React 15.5.0. Now you must use prop-types library ...
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 FreeTop 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
Top GitHub Comments
Same here, only started learning React. Interested on how it can be resolved in my code. Not quite sure how to use https://fb.me/react-warning-dont-call-proptypes help.
Probably you use some old version of react. If you update your npm packages everything works fine.