mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #2892 from jsfb/fbme-url-for-dangerouslySetInnerHtml
Added fb.me url to error message.
This commit is contained in:
@@ -63,7 +63,7 @@ function assertValidProps(props) {
|
||||
invariant(
|
||||
props.dangerouslySetInnerHTML.__html != null,
|
||||
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
|
||||
'For more information, lookup documentation on `dangerouslySetInnerHTML`.'
|
||||
'Please visit http://fb.me/react-invariant-dangerously-set-inner-html for more information.'
|
||||
);
|
||||
}
|
||||
if (__DEV__) {
|
||||
|
||||
@@ -357,7 +357,7 @@ describe('ReactDOMComponent', function() {
|
||||
}).toThrow(
|
||||
'Invariant Violation: ' +
|
||||
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
|
||||
'For more information, lookup documentation on `dangerouslySetInnerHTML`.'
|
||||
'Please visit http://fb.me/react-invariant-dangerously-set-inner-html for more information.'
|
||||
);
|
||||
});
|
||||
|
||||
@@ -367,7 +367,7 @@ describe('ReactDOMComponent', function() {
|
||||
}).toThrow(
|
||||
'Invariant Violation: ' +
|
||||
'`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. ' +
|
||||
'For more information, lookup documentation on `dangerouslySetInnerHTML`.'
|
||||
'Please visit http://fb.me/react-invariant-dangerously-set-inner-html for more information.'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user