Skip to content

Commit

Permalink
facebook.github.io/react -> reactjs.org (facebook#12545)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and rhagigi committed Apr 19, 2018
1 parent 998c22d commit 97daadf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/react-reconciler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"keywords": [
"react"
],
"homepage": "https://facebook.github.io/react/",
"homepage": "https://reactjs.org/",
"bugs": "https://github.com/facebook/react/issues",
"license": "MIT",
"files": [
Expand Down
6 changes: 3 additions & 3 deletions packages/shared/__tests__/reactProdInvariant-test.internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('reactProdInvariant', () => {
reactProdInvariant(124, 'foo', 'bar');
}).toThrowError(
'Minified React error #124; visit ' +
'http://facebook.github.io/react/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
'http://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.',
);
Expand All @@ -48,7 +48,7 @@ describe('reactProdInvariant', () => {
reactProdInvariant(20);
}).toThrowError(
'Minified React error #20; visit ' +
'http://facebook.github.io/react/docs/error-decoder.html?invariant=20' +
'http://reactjs.org/docs/error-decoder.html?invariant=20' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.',
);
Expand All @@ -57,7 +57,7 @@ describe('reactProdInvariant', () => {
reactProdInvariant(77, '<div>', '&?bar');
}).toThrowError(
'Minified React error #77; visit ' +
'http://facebook.github.io/react/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
'http://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
' for the full message or use the non-minified dev environment' +
' for full errors and additional helpful warnings.',
);
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/reactProdInvariant.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function reactProdInvariant(code: string): void {
'Minified React error #' +
code +
'; visit ' +
'http://facebook.github.io/react/docs/error-decoder.html?invariant=' +
'http://reactjs.org/docs/error-decoder.html?invariant=' +
code;

for (let argIdx = 0; argIdx < argCount; argIdx++) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/error-codes/replace-invariant-error-codes.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = function(babel) {
// that references a verbose error message.
// The mapping is stored in `scripts/error-codes/codes.json`.
// - `PROD_INVARIANT` is the `reactProdInvariant` function that always throws with an error URL like
// http://facebook.github.io/react/docs/error-decoder.html?invariant=XYZ&args[]=foo&args[]=bar
// http://reactjs.org/docs/error-decoder.html?invariant=XYZ&args[]=foo&args[]=bar
//
// Specifically this does 3 things:
// 1. Checks the condition first, preventing an extra function call.
Expand Down

0 comments on commit 97daadf

Please sign in to comment.