Skip to content

Commit 465fbc1

Browse files
authored
chore: Update README.md to fix incorrect inlineSize/blockSize explanation.
fixes #104 See: - [uRO code](https://github.com/ZeeCoder/use-resize-observer/blob/master/src/index.ts#L118-L119) - [MDN example](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserverEntry#examples)
1 parent b2592d8 commit 465fbc1

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
@@ -56,8 +56,8 @@ npm install use-resize-observer --save-dev
5656
| Name | Type | Description |
5757
| ------ | ----------------------- | ---------------------------------------------- |
5858
| ref | RefCallback | A callback to be passed to React's "ref" prop. |
59-
| width | undefined | number | The width (or "blockSize") of the element. |
60-
| height | undefined | number | The height (or "inlineSize") of the element. |
59+
| width | undefined | number | The width (or "inlineSize") of the element. |
60+
| height | undefined | number | The height (or "blockSize") of the element. |
6161

6262
## Basic Usage
6363

0 commit comments

Comments
 (0)