Skip to content

Commit 58859b3

Browse files
committed
Merge branch 'dev'
2 parents 66afed7 + 89e8f9c commit 58859b3

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
@@ -37,7 +37,7 @@ This hook only take one argument that should be a ref to an HTML Element. This h
3737
```js
3838
//TypeScript
3939
function Example() {
40-
const ref = useRef <HTMLDivElement>(null);
40+
const ref = useRef < HTMLDivElement > null;
4141

4242
//I'm destructuring the object but you can easily use it without destructuring
4343
const { x, y } = useProximity(ref);
@@ -139,4 +139,4 @@ function Example() {
139139

140140
## Directions enum
141141

142-
This lib provides an enum for TypeScript users, it just has two properties at the moment: Directions.up, Directions.down, Directions.right and Directions.left that returns the value of "UP", "DOWN" "RIGHT" and "LEFT", you can use it as helper for useDirection hook.
142+
This lib provides an enum for TypeScript users, it just has four properties at the moment: Directions.up, Directions.down, Directions.right and Directions.left that returns the value of "UP", "DOWN" "RIGHT" and "LEFT", you can use it as helper for useDirection hook.

0 commit comments

Comments
 (0)