Browse Source

Update concurrent-mode-reference.md

main
Alexey Pyltsyn 5 years ago
committed by GitHub
parent
commit
fab0b46659
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      content/docs/concurrent-mode-reference.md

8
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.

Loading…
Cancel
Save