mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Adjust params
This commit is contained in:
@@ -80,8 +80,8 @@ var ReactOwner = {
|
||||
'addComponentAsRefTo(...): Only a ReactOwner can have refs. This ' +
|
||||
'usually means that you\'re trying to add a ref to 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.'
|
||||
'component\'s `render` method). Try rendering this component inside of ' +
|
||||
'a new top-level component which will hold the ref.)'
|
||||
);
|
||||
owner.attachRef(ref, component);
|
||||
},
|
||||
@@ -101,7 +101,7 @@ var ReactOwner = {
|
||||
'removeComponentAsRefFrom(...): Only a ReactOwner can have refs. This ' +
|
||||
'usually means that you\'re trying to remove a ref to 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 ' +
|
||||
'component\'s `render` method). Try rendering this component inside of ' +
|
||||
'a new top-level component which will hold the ref.'
|
||||
);
|
||||
// Check that `component` is still the current ref because we do not want to
|
||||
|
||||
Reference in New Issue
Block a user