From 810582d114f65b3f86301d53f34235b68d6c7f1e Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 16 Oct 2014 18:21:55 -0700 Subject: [PATCH] Fix warning message for using React.DOM.* as type Previously, this said 'Use the string "function() { [native code] }" instead.'. --- src/core/ReactLegacyElement.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/ReactLegacyElement.js b/src/core/ReactLegacyElement.js index aeb92b34cc..909fe1aa77 100644 --- a/src/core/ReactLegacyElement.js +++ b/src/core/ReactLegacyElement.js @@ -74,7 +74,7 @@ function warnForNonLegacyFactory(type) { warning( false, 'Do not pass React.DOM.' + type.type + ' to JSX or createFactory. ' + - 'Use the string "' + type + '" instead.' + 'Use the string "' + type.type + '" instead.' ); }