facebook.github.io/react -> reactjs.org (#12545)
Dan Abramov committed
Apr 4, 2018 at 21:20 UTC
e932e321a88e07935224701bc4580e3dc9889afe
4 files changed
+6
-6
packages/react-reconciler/package.json
+1
-1
@@ -5,7 +5,7 @@
5
"keywords": [
6
"react"
7
],
8
- "homepage": "https://facebook.github.io/react/",
8
+ "homepage": "https://reactjs.org/",
9
"bugs": "https://github.com/facebook/react/issues",
10
"license": "MIT",
11
"files": [
packages/shared/__tests__/reactProdInvariant-test.internal.js
+3
-3
@@ -39,7 +39,7 @@ describe('reactProdInvariant', () => {
39
reactProdInvariant(124, 'foo', 'bar');
40
}).toThrowError(
41
'Minified React error #124; visit ' +
42
- 'http://facebook.github.io/react/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
42
+ 'http://reactjs.org/docs/error-decoder.html?invariant=124&args[]=foo&args[]=bar' +
43
' for the full message or use the non-minified dev environment' +
44
' for full errors and additional helpful warnings.',
45
);
@@ -48,7 +48,7 @@ describe('reactProdInvariant', () => {
48
reactProdInvariant(20);
49
}).toThrowError(
50
'Minified React error #20; visit ' +
51
- 'http://facebook.github.io/react/docs/error-decoder.html?invariant=20' +
51
+ 'http://reactjs.org/docs/error-decoder.html?invariant=20' +
52
' for the full message or use the non-minified dev environment' +
53
' for full errors and additional helpful warnings.',
54
);
@@ -57,7 +57,7 @@ describe('reactProdInvariant', () => {
57
reactProdInvariant(77, '<div>', '&?bar');
58
}).toThrowError(
59
'Minified React error #77; visit ' +
60
- 'http://facebook.github.io/react/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
60
+ 'http://reactjs.org/docs/error-decoder.html?invariant=77&args[]=%3Cdiv%3E&args[]=%26%3Fbar' +
61
' for the full message or use the non-minified dev environment' +
62
' for full errors and additional helpful warnings.',
63
);
packages/shared/reactProdInvariant.js
+1
-1
@@ -20,7 +20,7 @@ function reactProdInvariant(code: string): void {
20
'Minified React error #' +
21
code +
22
'; visit ' +
23
- 'http://facebook.github.io/react/docs/error-decoder.html?invariant=' +
23
+ 'http://reactjs.org/docs/error-decoder.html?invariant=' +
24
code;
25
26
for (let argIdx = 0; argIdx < argCount; argIdx++) {
scripts/error-codes/replace-invariant-error-codes.js
+1
-1
@@ -64,7 +64,7 @@ module.exports = function(babel) {
64
// that references a verbose error message.
65
// The mapping is stored in `scripts/error-codes/codes.json`.
66
// - `PROD_INVARIANT` is the `reactProdInvariant` function that always throws with an error URL like
67
- // http://facebook.github.io/react/docs/error-decoder.html?invariant=XYZ&args[]=foo&args[]=bar
67
+ // http://reactjs.org/docs/error-decoder.html?invariant=XYZ&args[]=foo&args[]=bar
68
//
69
// Specifically this does 3 things:
70
// 1. Checks the condition first, preventing an extra function call.