mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Mangle __html in prop validation.
This commit is contained in:
1 parent
e603644255
commit
e26666fb1e
1 file changed
+1
-1
@@ -259,7 +259,7 @@ function assertValidProps(component, props) {
|
||||
);
|
||||
invariant(
|
||||
typeof props.dangerouslySetInnerHTML === 'object' &&
|
||||
'__html' in props.dangerouslySetInnerHTML,
|
||||
keyOf({ __html: null }) 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