Skip to content

Commit f22f00a

Browse files
committed
Update comments
1 parent 05490a7 commit f22f00a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/react-router-dom/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,9 @@ export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
418418
},
419419
ref
420420
) {
421-
let isExternal = false;
421+
// Rendered into <a href> for absolute URLs
422422
let absoluteHref;
423+
let isExternal = false;
423424

424425
if (
425426
isBrowser &&
@@ -439,7 +440,7 @@ export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
439440
}
440441
}
441442

442-
// `href` is what we render in the <a> tag for relative URLs
443+
// Rendered into <a href> for relative URLs
443444
let href = useHref(to, { relative });
444445

445446
let internalOnClick = useLinkClickHandler(to, {

0 commit comments

Comments
 (0)