Skip to content

Commit d9061e7

Browse files
authored
docs: Mention experimental build of React (#403)
1 parent 33ce250 commit d9061e7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/quickstart-concurrent-mode.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ cd myapp
5858
> Ignore yarn/npm warnings.
5959
6060
```bash
61-
yarn add firebase reactfire
61+
yarn add firebase reactfire react@experimental react-dom@experimental
6262

6363
# or
6464

65-
npm install --save firebase reactfire
65+
npm install --save firebase reactfire react@experimental react-dom@experimental
6666
```
6767

68+
⚠️ **Status: Experimental**. In order to use the feature of concurrent mode, [an experimental build of React is required](https://reactjs.org/docs/concurrent-mode-adoption.html#installation).
69+
6870
## 4. Register your app with Firebase
6971

7072
1. In the center of the Firebase console's project overview page, click the Web icon to launch the setup workflow.
@@ -111,7 +113,7 @@ npm install --save firebase reactfire
111113
112114
```jsx
113115
//...
114-
ReactDOM.createRoot(document.getElementById('root')).render(
116+
ReactDOM.unstable_createRoot(document.getElementById('root')).render(
115117
<FirebaseAppProvider firebaseConfig={firebaseConfig} suspense={true}>
116118
<App />
117119
</FirebaseAppProvider>

0 commit comments

Comments
 (0)