Skip to content

Commit 05a760b

Browse files
author
Brian Vaughn
committed
Removed createBlockingRoot API docs and added a warning note
1 parent 446345c commit 05a760b

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

content/docs/concurrent-mode-adoption.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ next: concurrent-mode-reference.html
2121
>
2222
>This documentation is aimed at early adopters and people who are curious. **If you're new to React, don't worry about these features** -- you don't need to learn them right now.
2323
24+
>Caution:
25+
>
26+
>All references below to "blocking mode" and `createBlockingRoot` are outdated and should be ignored.
27+
2428
</div>
2529

2630
- [Installation](#installation)

content/docs/concurrent-mode-reference.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ This page is an API reference for the React [Concurrent Mode](/docs/concurrent-m
2828

2929
- [Enabling Concurrent Mode](#concurrent-mode)
3030
- [`createRoot`](#createroot)
31-
- [`createBlockingRoot`](#createblockingroot)
3231
- [Suspense](#suspense)
3332
- [`Suspense`](#suspensecomponent)
3433
- [`SuspenseList`](#suspenselist)
@@ -47,18 +46,6 @@ Replaces `ReactDOM.render(<App />, rootNode)` and enables Concurrent Mode.
4746

4847
For more information on Concurrent Mode, check out the [Concurrent Mode documentation.](/docs/concurrent-mode-intro.html)
4948

50-
### `createBlockingRoot` {#createblockingroot}
51-
52-
```js
53-
ReactDOM.createBlockingRoot(rootNode).render(<App />)
54-
```
55-
56-
Replaces `ReactDOM.render(<App />, rootNode)` and enables [Blocking Mode](/docs/concurrent-mode-adoption.html#migration-step-blocking-mode).
57-
58-
Opting into Concurrent Mode introduces semantic changes to how React works. This means that you can't use Concurrent Mode in just a few components. Because of this, some apps may not be able to migrate directly to Concurrent Mode.
59-
60-
Blocking Mode only contains a small subset of Concurrent Mode features and is intended as an intermediary migration step for apps that are unable to migrate directly.
61-
6249
## Suspense API {#suspense}
6350

6451
### `Suspense` {#suspensecomponent}

0 commit comments

Comments
 (0)