Merge pull request #2892 from jsfb/fbme-url-for-dangerouslySetInnerHtml

Added fb.me url to error message.
This commit is contained in:
Jim
2015-01-22 17:07:28 -08:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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.'
);
});