facebook.github.io/react -> reactjs.org (#12545)

This commit is contained in:
Dan Abramov
2018-04-04 21:20:41 +01:00
committed by GitHub
parent 5e3706cca0
commit e932e321a8
4 changed files with 6 additions and 6 deletions

View File

@@ -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.