Skip to content

Commit c465a3f

Browse files
committed
chore: Added an example of achieving breakpoints.
1 parent 52709fe commit c465a3f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ You might want to receive values less frequently than changes actually occur.
276276

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

279+
### Breakpoints
280+
281+
Another popular concept are breakpoints. Here is an example for a simple hook accomplishing that.
282+
283+
[CodeSandbox Demo](https://codesandbox.io/s/use-resize-observer-breakpoints-3hiv8)
284+
279285
## Defaults (SSR)
280286

281287
On initial mount the ResizeObserver will take a little time to report on the

0 commit comments

Comments
 (0)