Reacting is not recommended using propTypes
from the main package, so you cannot use React.PropTypes
. When you use React.PropTypes
, you get a warning, but when you use propTypes
out prop-types
, you are good.
What is it:)
You can use this knowledge to find a list of npm packages that use it with the following command.
find ./node_modules -type f -print0 | xargs -0 grep 'PropTypes' | cut -d/ -f3 | sort | uniq | xargs -I{} grep -L 'prop-types' ./node_modules/{}/package.json
npm, propTypes
, , package.json
, , prop-types
. prop-types
, .
PS: bash, . ( npm, propTypes
)

PPS: , Unix-.