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
This limitation forces developers to always create refs by themselves, even in cases where they might have not want to create additional refs or want to use different selection methods, like `querySelector`.
@@ -18,28 +18,29 @@ Our library implements a flexible approach using `typescript` function overloads
18
18
1. By passing an **existing** target _(ref, DOM element, function that returns a DOM element, or selector)_
This dual approach provides better developer experience and more flexibility in different use cases.
39
40
40
-
## The target method
41
+
## The target function
41
42
42
-
The **target**method is a utility function that helps you work with DOM elements in a flexible way. It allows you to reference DOM elements using different approaches:
43
+
The **target**function is a utility function that helps you work with DOM elements in a flexible way. It allows you to reference DOM elements using different approaches:
43
44
44
45
- React refs _(RefObject)_
45
46
- Direct DOM elements _(Element)_
@@ -49,13 +50,13 @@ The **target** method is a utility function that helps you work with DOM element
49
50
The flexibility of `target` means you can use our hooks like you want.
0 commit comments