mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2368 from spicyj/use-the-string
Fix warning message for using React.DOM.* as type
This commit is contained in:
@@ -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.'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user