mirror of
https://github.com/facebook/react.git
synced 2026-02-25 05:03:03 +00:00
* Revert "Revert "Warn if PropType function is called manually (#7132)""
This reverts commit be71f76ed8.
In other words, now we again have the warning if you attempt to call PropTypes manually.
It was removed in #8066 but we shouldn't have done this since we still want to avoid people accidentally calling them in production (and even more so since now it would throw).
Fixes #8080.
* Pass secret in ReactControlledValuePropTypes
* Record tests