From c13588ef0a48fe06f8d0509107a29ad6bc9258ca Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Mon, 20 Jul 2015 11:03:49 -0700 Subject: [PATCH] Fix typo in removeComponentAsRefFrom error message. --- src/renderers/shared/reconciler/ReactOwner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/shared/reconciler/ReactOwner.js b/src/renderers/shared/reconciler/ReactOwner.js index 4b91f9117e..89d5cd3995 100644 --- a/src/renderers/shared/reconciler/ReactOwner.js +++ b/src/renderers/shared/reconciler/ReactOwner.js @@ -92,7 +92,7 @@ var ReactOwner = { invariant( ReactOwner.isValidOwner(owner), 'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This ' + - 'usually means that you\'re trying to remove a ref to a component that ' + + 'usually means that you\'re trying to remove a ref from a component that ' + 'doesn\'t have an owner (that is, was not created inside of another ' + 'component\'s `render` method). Try rendering this component inside of ' + 'a new top-level component which will hold the ref.'