Move `prop-types` to regular `dependencies`
See original GitHub issueprop-types
have been moved out of react
for the very reason that it’s not mandatory in a React project …
If this module depends on it, it should be a regular dependency
and not a peerDependency
.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
'prop-types' should be listed in the project's dependencies, not ...
'prop-types' should be listed in the project's dependencies, not devDependencies · Go to your package. · Save to the regular dependencies, not the ......
Read more >Remove prop-types from peer dependencies #87 - GitHub
My project doesn't use prop-types, is there a reason why it's a peer dependency?
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 >Why is prop-types not a dev dependency? : r/reactjs - Reddit
It's a dependency because it's needed at runtime. It's not merely part of the build process. It's true that if you use something...
Read more >prop-types | Yarn - Package Manager
Runtime type checking for React props and similar objects. You can use prop-types to document the intended types of properties passed to components....
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
I’ll be happy both with your last idea and with status quo.
Here you go !
https://github.com/okonet/react-scroll-sync/pull/39