mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
facebook.github.io/react -> reactjs.org (#12545)
This commit is contained in:
@@ -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": [
|
||||
|
||||
@@ -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.',
|
||||
);
|
||||
@@ -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.',
|
||||
);
|
||||
@@ -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.',
|
||||
);
|
||||
|
||||
@@ -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++) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user