tag',
);
});
@@ -2186,7 +2186,7 @@ describe('ReactDOMComponent', () => {
expect(el.hasAttribute('whatever')).toBe(false);
expectDev(console.error.calls.argsFor(0)[0]).toContain(
- 'Warning: Invalid prop `whatever` on
tag.',
+ 'Warning: Invalid value for prop `whatever` on
tag.',
);
});
diff --git a/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js b/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
index f49442ccf3d4e..4231bb1f37b5c 100644
--- a/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
+++ b/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js
@@ -73,7 +73,7 @@ if (__DEV__) {
if (registrationName != null) {
warning(
false,
- 'Unknown event handler property `%s`. Did you mean `%s`?%s',
+ 'Invalid event handler property `%s`. Did you mean `%s`?%s',
name,
registrationName,
getStackAddendum(debugID),
@@ -234,9 +234,9 @@ var warnUnknownProperties = function(type, props, debugID) {
if (unknownProps.length === 1) {
warning(
false,
- 'Invalid prop %s on <%s> tag. Either remove this prop from the element, ' +
+ 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' +
'or pass a string or number value to keep it in the DOM. ' +
- 'For details, see https://fb.me/react-unknown-prop%s',
+ 'For details, see https://fb.me/react-attribute-behavior%s',
unknownPropString,
type,
getStackAddendum(debugID),
@@ -244,9 +244,9 @@ var warnUnknownProperties = function(type, props, debugID) {
} else if (unknownProps.length > 1) {
warning(
false,
- 'Invalid props %s on <%s> tag. Either remove these props from the element, ' +
+ 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' +
'or pass a string or number value to keep them in the DOM. ' +
- 'For details, see https://fb.me/react-unknown-prop%s',
+ 'For details, see https://fb.me/react-attribute-behavior%s',
unknownPropString,
type,
getStackAddendum(debugID),