Skip to content

Commit b1bef58

Browse files
nocode13titovmx
andauthored
Update src/content/reference/react/useLayoutEffect.md
made more clear Co-authored-by: Maxim Titov <[email protected]>
1 parent 22cec09 commit b1bef58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/useLayoutEffect.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function Tooltip() {
9292

9393
useLayoutEffect(() => {
9494
const { height } = ref.current.getBoundingClientRect();
95-
setTooltipHeight(height); // Теперь перерендерьте, когда вы знаете реальную высоту.
95+
setTooltipHeight(height); // Теперь вызовите повторный рендер, когда вы знаете реальную высоту.
9696
}, []);
9797

9898
// ...используйте tooltipHeight в логике рендеринга ниже...

0 commit comments

Comments
 (0)