Skip to content

Commit c1839d6

Browse files
committed
tweak
1 parent 9198dbc commit c1839d6

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/content/reference/react/Suspense.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,7 +2380,7 @@ A stylesheet rendered with [`<link rel="stylesheet">` and a `precedence` prop](/
23802380
23812381
In the example below, the `Card` component renders a stylesheet with `precedence`. Press "Show card": React shows the fallback until the stylesheet has loaded, and then reveals the card with its styles applied.
23822382
2383-
For comparison, the second button performs the same update with plain DOM in a separate document, without React. Nothing waits for the stylesheet, so the card's text appears in a fallback font first and then switches:
2383+
For comparison, the second button performs the same update without React, in a separate document. Nothing waits for the stylesheet, so the card's text appears in a fallback font first and then switches:
23842384
23852385
<Sandpack>
23862386
@@ -2450,7 +2450,7 @@ export default function VanillaCard() {
24502450
}
24512451
return (
24522452
<>
2453-
<button onClick={show}>Show card (vanilla DOM)</button>
2453+
<button onClick={show}>Show card (without React)</button>
24542454
<iframe ref={ref} title="Vanilla card" className="vanilla-frame" />
24552455
</>
24562456
);
@@ -2745,7 +2745,7 @@ When a [`<ViewTransition>`](/reference/react/ViewTransition) animates a Suspense
27452745
27462746
In the example below, the Suspense boundary is wrapped in a `<ViewTransition>`, and the `Quote` component suspends while its data loads. Rendering the quote starts its font download. React keeps the fallback visible until the font has loaded, so the quote appears already in its font.
27472747
2748-
For comparison, the second button performs the same update with plain DOM, without React. Nothing waits for the font, so the text appears in a fallback font first and then switches:
2748+
For comparison, the second button performs the same update without React. Nothing waits for the font, so the text appears in a fallback font first and then switches:
27492749
27502750
<Sandpack>
27512751
@@ -2815,7 +2815,7 @@ export default function VanillaQuote() {
28152815
}
28162816
return (
28172817
<>
2818-
<button onClick={show}>Show quote (vanilla DOM)</button>
2818+
<button onClick={show}>Show quote (without React)</button>
28192819
<div ref={ref} />
28202820
</>
28212821
);
@@ -2895,7 +2895,7 @@ When a [`<ViewTransition>`](/reference/react/ViewTransition) animates a Suspense
28952895
28962896
In the example below, the Suspense boundary is wrapped in a `<ViewTransition>` and shows a profile skeleton until the portrait has loaded.
28972897
2898-
For comparison, the second button performs the same update with plain DOM, without React. Nothing waits for the image, so the card appears immediately and the image pops in when it loads:
2898+
For comparison, the second button performs the same update without React. Nothing waits for the image, so the card appears immediately and the image pops in when it loads:
28992899
29002900
<Sandpack>
29012901
@@ -2962,7 +2962,7 @@ export default function VanillaProfile() {
29622962
}
29632963
return (
29642964
<>
2965-
<button onClick={show}>Show profile (vanilla DOM)</button>
2965+
<button onClick={show}>Show profile (without React)</button>
29662966
<div ref={ref} />
29672967
</>
29682968
);
@@ -3026,7 +3026,7 @@ hr {
30263026
30273027
A Suspense boundary can wait for data, stylesheets, fonts, and images at once. Waiting for fonts and images only happens during a [`<ViewTransition>`](/reference/react/ViewTransition) update. In the example below, the `ProfileCard` component suspends while its data loads, and renders a stylesheet with `precedence`, text in a new font, and a portrait. React keeps the skeleton visible while the data and the stylesheet load. The `<ViewTransition>` reveal then waits for the font and the image, so the card appears complete.
30283028
3029-
For comparison, the plain DOM version loads the same data and shows every resource arriving on its own schedule:
3029+
For comparison, the version without React loads the same data and shows every resource arriving on its own schedule:
30303030
30313031
<Sandpack>
30323032
@@ -3126,7 +3126,7 @@ export default function VanillaProfileCard() {
31263126
}
31273127
return (
31283128
<>
3129-
<button onClick={show}>Show profile (vanilla DOM)</button>
3129+
<button onClick={show}>Show profile (without React)</button>
31303130
<iframe ref={ref} title="Vanilla profile card" className="vanilla-frame" />
31313131
</>
31323132
);

0 commit comments

Comments
 (0)