Skip to content

Commit

Permalink
React 15.x deprecated the import of PropTypes from the React package.…
Browse files Browse the repository at this point in the history
… Now, it is preferred that 'prop-types' is a separate dependency. (#11)
  • Loading branch information
Michael Martin authored Feb 8, 2018
1 parent 8768052 commit e05b353
Show file tree
Hide file tree
Showing 11 changed files with 7,679 additions and 88 deletions.
6 changes: 3 additions & 3 deletions docs/static/manager.d6b2ac3472d0d5f70dbf.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -18458,7 +18458,7 @@ function factory(ReactComponent, isValidElement, ReactNoopUpdateQueue) {
warning(
typeof typeDef[propName] === 'function',
'%s: %s type `%s` is invalid; it must be a function, usually from ' +
'React.PropTypes.',
'PropTypes.',
Constructor.displayName || 'ReactClass',
ReactPropTypeLocationNames[location],
propName
Expand Down Expand Up @@ -35868,7 +35868,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
'Read more at http://fb.me/use-check-prop-types'
);
} else if (false) {
// Old behavior for people using React.PropTypes
// Old behavior for people using PropTypes
var cacheKey = componentName + ':' + propName;
if (
!manualPropTypeCallCache[cacheKey] &&
Expand All @@ -35877,7 +35877,7 @@ module.exports = function(isValidElement, throwOnDirectAccess) {
) {
warning(
false,
'You are manually calling a React.PropTypes validation ' +
'You are manually calling a PropTypes validation ' +
'function for the `%s` prop on `%s`. This is deprecated ' +
'and will throw in the standalone `prop-types` package. ' +
'You may be seeing this warning due to a third-party PropTypes ' +
Expand Down
Loading

0 comments on commit e05b353

Please sign in to comment.