mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Update concurrent-mode-reference.md
This commit is contained in:
@@ -53,10 +53,10 @@ Blocking Mode only contains a small subset of Concurrent Mode features and is in
|
||||
### `Suspense` {#suspensecomponent}
|
||||
|
||||
```js
|
||||
<Suspense fallback={<h1>Loading...</h1>}>
|
||||
<ProfilePhoto />
|
||||
<ProfileDetails />
|
||||
</Suspense>
|
||||
<Suspense fallback={<h1>Loading...</h1>}>
|
||||
<ProfilePhoto />
|
||||
<ProfileDetails />
|
||||
</Suspense>
|
||||
```
|
||||
|
||||
`Suspense` lets your components "wait" for something before they can render, showing a fallback while waiting.
|
||||
|
||||
Reference in New Issue
Block a user