We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a7d8ae commit f268647Copy full SHA for f268647
modules/utils/PropTypes.js
@@ -3,9 +3,9 @@ var PropTypes = {
3
/**
4
* Requires that the value of a prop be falsy.
5
*/
6
- falsy: function (props, propName, elementName) {
+ falsy: function (props, propName, componentName) {
7
if (props[propName])
8
- return new Error('<' + elementName + '> may not have a "' + propName + '" prop');
+ return new Error('<' + componentName + '> may not have a "' + propName + '" prop');
9
}
10
11
};
0 commit comments