Skip to content

Commit dbdafb0

Browse files
authored
Revert behaviors docs
1 parent 85b8381 commit dbdafb0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

contributor-docs/behaviors.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Generic behaviors provide functionality that is not specific to any single compo
4444

4545
### Examples
4646

47-
- `useCombinedRefs`
47+
- `useProvidedRefOrCreate`
4848
- `usePosition`
4949
- `useClickAway`
5050
- `useTypeAhead`
@@ -123,7 +123,7 @@ There are no restrictions on return values of generic behavior hooks. In fact, s
123123

124124
- Often, a behavior will need to act on a real DOM element.
125125
- In this case, the hook should return a ref as part of the returned props for that element. The ref will get spread onto the element, giving the ref access to it.
126-
- Whenever you need a ref, it must be accepted as an optional setting to the hook.
126+
- Whenever you need a ref, it must be accepted as an optional setting to the hook. The hook then uses the `useProvidedRefOrCreate` hook to resolve a usable ref. Remember to return the resulting ref from the hook.
127127

128128
## Testing behaviors
129129

0 commit comments

Comments
 (0)