Alexey Pyltsyn
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
4 deletions
-
content/docs/concurrent-mode-reference.md
|
|
@ -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. |
|
|
|