Skip to content

Commit a1c68eb

Browse files
committed
Update api.md
1 parent 31fa0b6 commit a1c68eb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,13 @@ const resizeObserverEntry = useResizeObserverEntry(
485485
);
486486

487487
/* retrieve width and height from legacy `contentRect` property */
488-
const { contentRectWidth: width, contentRectHeight: height } = resizeObserverEntry.contentRect;
488+
const { width: contentRectWidth, height: contentRectHeight } = resizeObserverEntry.contentRect;
489489

490490
/* retrieve width and height from `borderBoxSize` property of first fragment */
491-
const { borderBoxSizeWidth: inlineSize, borderBoxSizeHeight: blockSize } = resizeObserverEntry.borderBoxSize[0];
491+
const { inlineSize: borderBoxSizeWidth, blockSize: borderBoxSizeHeight } = resizeObserverEntry.borderBoxSize[0];
492492

493493
/* retrieve width and height from `contentBoxSize` property of first fragment */
494-
const { contentBoxSizeWidth: inlineSize, contentBoxSizeHeight: blockSize } = resizeObserverEntry.contentBoxSize[0];
494+
const { inlineSize: contentBoxSizeWidth, blockSize: contentBoxSizeHeight } = resizeObserverEntry.contentBoxSize[0];
495495

496496
/* retrieve width and height from `devicePixelContentBoxSize` property of first fragment */
497497
const {

0 commit comments

Comments
 (0)