mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Merge pull request #4435 from rtfeldman/fix-error-message
Fix typo in removeComponentAsRefFrom error message
This commit is contained in:
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user