Skip to content

Commit c7f0537

Browse files
author
João Dias
committed
docs: added use useLiveRef doc
1 parent 7320252 commit c7f0537

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/hooks/use-live-ref.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: useLifecycle
2+
title: useLiveRef
33
---
44
Creates a `React.RefObject` that is constantly updated with the incoming value.
55

@@ -12,7 +12,7 @@ This technique is especially beneficial when working with hooks like useEffect.
1212
## API
1313

1414
```typescript
15-
function useLifecycle(mount: () => void, unmount?: () => void): void;
15+
function useLiveRef<T>(value: T): MutableRefObject<T>;
1616
```
1717

1818
### Usage

0 commit comments

Comments
 (0)