Mangle __html in prop validation.

This commit is contained in:
Ram Kaniyur committed 2015-10-28 00:18:00 +11:00
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.'