From 1e9a9643da32aed826f3eadbb4e6ad934c43c830 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 28 Feb 2022 19:05:11 -0500 Subject: [PATCH] Update devtools I'm not sure if this is actually right. Relying on CI. --- packages/react-devtools-inline/README.md | 8 +++----- packages/react-devtools-shell/src/app/index.js | 5 ++--- packages/react-devtools-shell/src/e2e/app.js | 3 ++- packages/react-devtools-shell/src/e2e/devtools.js | 3 ++- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/packages/react-devtools-inline/README.md b/packages/react-devtools-inline/README.md index fe071633528c6..53edee429bd02 100644 --- a/packages/react-devtools-inline/README.md +++ b/packages/react-devtools-inline/README.md @@ -60,7 +60,7 @@ const contentWindow = iframe.contentWindow; const DevTools = initialize(contentWindow); ``` -3 Because the DevTools interface makes use of several new React APIs (e.g. suspense, concurrent mode) it should be rendered using either `ReactDOM.createRoot` or `ReactDOM.createSyncRoot`. **It should not be rendered with `ReactDOM.render`.** +3 Because the DevTools interface makes use of several new React APIs (e.g. suspense, concurrent mode) it should be rendered using `ReactDOMClient.createRoot`. **It should not be rendered with `ReactDOM.render`.** ## Examples @@ -110,8 +110,7 @@ const DevTools = initializeFrontend(contentWindow); // as setting the src of the