Skip to content

Commit 91102e1

Browse files
committed
readme update
1 parent db1d0e4 commit 91102e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ You can even reuse the same hook instance to measure different elements:
5858
You might want to receive values less frequently than changes actually occur.
5959

6060
While this hook does not come with its own implementation of throttling / debouncing,
61-
you can use hook composition instead to achieve the same results:
61+
you can use the `onResize` callback to implement your own version:
6262

6363
[CodeSandbox Demo](https://codesandbox.io/s/use-resize-observer-throttle-and-debounce-8uvsg)
6464

@@ -79,7 +79,7 @@ const { ref, width = 100, height = 50 } = useResizeObserver();
7979
Here "width" and "height" will be 100 and 50 respectively, until the
8080
ResizeObserver kicks in and reports the actual size.
8181

82-
## No Defaults
82+
## Without Defaults
8383

8484
If you only want real measurements (only values from the ResizeObserver without
8585
any default values), then you can just leave defaults off:

0 commit comments

Comments
 (0)