Skip to content

Commit 867c049

Browse files
authored
Merge pull request #31 from ecreeth/patch-1
Rename createSyncRoot to createBlockingRoot
2 parents ba6397a + 36edb59 commit 867c049

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apis/roots.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ These are concurrent-ready attachment points for React onto the DOM.
99

1010
## `ReactDOM.createRoot and Root.render`
1111

12-
API: `ReactDOM.unstable_createRoot`
12+
API: `ReactDOM.createRoot`
1313

1414
Instead of `ReactDOM.render`, `ReactDOM.createRoot` creates a Concurrent root for React. It also doesn't assume the first render is synchronous (aka you can suspend even on the first render, which useful for prerendering via `root.createBatch()`).
1515

@@ -21,16 +21,16 @@ const root = ReactDOM.createRoot(container);
2121
root.render(<App />);
2222
```
2323

24-
## `ReactDOM.createSyncRoot`
24+
## `ReactDOM.createBlockingRoot`
2525

26-
API: `ReactDOM.unstable_createSyncRoot`
26+
API: `ReactDOM.createBlockingRoot
2727

2828
Create a Batched Mode root. It does not support `createBatch`.
2929

3030

3131
```js
3232
const container = document.getElementById('root');
33-
const root = ReactDOM.createSyncRoot(container);
33+
const root = ReactDOM.createBlockingRoot(container);
3434
root.render(<App />);
3535
```
3636

0 commit comments

Comments
 (0)