Skip to content

Commit 857f6c1

Browse files
committed
0.2.7; improve doc to show concept via GIF
1 parent 8d55a22 commit 857f6c1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ npm install -D use-viewport-sizes
2020
## Usage ##
2121

2222
### **See it in Action** ###
23-
*for an illustration of the concept, check out a CodeSandox* @
23+
24+
<center>
25+
<img src="./doc/use-viewport-sizes.gif" />
26+
27+
*Interact with the example shown on CodeSandox* @
2428
[https://codesandbox.io/s/j3vzpqxwww](https://codesandbox.io/s/j3vzpqxwww)
2529

30+
</center>
31+
2632
### **Without Debouncing**
2733
*registers dimension changes on every resize event immediately*
2834

doc/use-viewport-sizes.gif

906 KB
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "use-viewport-sizes",
3-
"version": "0.2.6",
3+
"version": "0.2.7",
44
"description": "tiny React hook for tracking visible window viewport size in your components w/ an optional debounce for optimal rendering.",
55
"main": "build/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)