You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api/ReactWrapper/ref.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
# `.ref(refName) => ReactWrapper`
1
+
# `.ref(refName) => ReactComponent | HTMLElement`
2
2
3
-
Returns a wrapper of the node that matches the provided reference name.
3
+
Returns the node that matches the provided reference name.
4
4
5
5
6
6
NOTE: can only be called on a wrapper instance that is also the root instance.
@@ -12,7 +12,7 @@ NOTE: can only be called on a wrapper instance that is also the root instance.
12
12
13
13
#### Returns
14
14
15
-
`ReactWrapper`: A wrapper of the node that matches the provided reference name.
15
+
`ReactComponent | HTMLElement`: The node that matches the provided reference name. This can be a react component instance, or an HTML element instance.
16
16
17
17
18
18
@@ -35,8 +35,7 @@ class Foo extends React.Component {
0 commit comments