diff --git a/website/architecture/landing-page.md b/website/architecture/landing-page.md index 809ccba9b9f..5416be0420f 100644 --- a/website/architecture/landing-page.md +++ b/website/architecture/landing-page.md @@ -34,11 +34,11 @@ In the current architecture, we use `onLayout` to get the measurements of the vi function ViewWithTooltip() { // ... - // We get the layout information and pass to ToolTip to position itself + // We get the layout information and pass to Tooltip to position itself const onLayout = React.useCallback(event => { targetRef.current?.measureInWindow((x, y, width, height) => { // This state update is not guaranteed to run in the same commit - // This results in a visual "jump" as the ToolTip repositions itself + // This results in a visual "jump" as the Tooltip repositions itself setTargetRect({x, y, width, height}); }); }, []); @@ -62,7 +62,7 @@ function ViewWithTooltip() { useLayoutEffect(() => { // The measurement and state update for `targetRect` happens in a single commit - // allowing ToolTip to position itself without intermediate paints + // allowing Tooltip to position itself without intermediate paints targetRef.current?.measureInWindow((x, y, width, height) => { setTargetRect({x, y, width, height}); }); @@ -82,11 +82,11 @@ function ViewWithTooltip() {
-
-