diff --git a/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js b/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js index e68bf66d913fe..7d931a6ccbd5a 100644 --- a/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js +++ b/src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js @@ -126,6 +126,18 @@ var warnUnknownProperties = function(type, props, debugID) { var isValid = validateProperty(type, key, debugID); if (!isValid) { unknownProps.push(key); + var value = props[key]; + if (typeof value === 'object' && value !== null) { + warning( + false, + 'The %s prop on <%s> is not a known property, and was given an object.' + + 'Remove it, or it will appear in the ' + + 'DOM after a future React update.%s', + key, + type, + getStackAddendum(debugID), + ); + } } }