mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Took keyOf outside the function.
This commit is contained in:
@@ -54,6 +54,7 @@ var registrationNameModules = EventPluginRegistry.registrationNameModules;
|
||||
var CONTENT_TYPES = {'string': true, 'number': true};
|
||||
|
||||
var STYLE = keyOf({style: null});
|
||||
var HTML = keyOf({__html: null});
|
||||
|
||||
var ELEMENT_NODE_TYPE = 1;
|
||||
|
||||
@@ -259,7 +260,7 @@ function assertValidProps(component, props) {
|
||||
);
|
||||
invariant(
|
||||
typeof props.dangerouslySetInnerHTML === 'object' &&
|
||||
keyOf({ __html: null }) in props.dangerouslySetInnerHTML,
|
||||
HTML in props.dangerouslySetInnerHTML,
|
||||
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
|
||||
'Please visit https://fb.me/react-invariant-dangerously-set-inner-html ' +
|
||||
'for more information.'
|
||||
|
||||
Reference in New Issue
Block a user