React warning about propTypes
See original GitHub issueHi there, I’ve noticed that the latest version(3.0.1) published to npm is still using React.PropTypes
even though the source code has been updated.
I believe it’s because the code is not build properly before publishing?
Here you can check from the code compiled on npm is still referring to React.
https://unpkg.com/react-radio-group@3.0.1
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var Radio = _react2['default'].createClass({
displayName: 'Radio',
contextTypes: {
radioGroup: _react2['default'].PropTypes.object
},
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
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 >PropType not giving warning - Stack Overflow
I have two props: text , and num . I am trying to use PropTypes to give a warning if they are not...
Read more >How to forget about type errors in your React props with ...
Notice the prop types being defined before the export of the component, that is very important because if you export before defining the...
Read more >Disable PropType warnings in Jest and React - Code Is Bae
This post shows how to disable proptype warning messages that might be in your test. Why would you want to do this? Different...
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
@nkbt @chenglou Any plan on release it?
Hello! Sorry for the delay. v3.0.2 has been released. Ping me if other issues pop up. Thanks!