From 5629f673f3d1a2fc69c3e7c1a4b568497745e516 Mon Sep 17 00:00:00 2001 From: Sebastian Markbage Date: Mon, 28 Feb 2022 19:05:11 -0500 Subject: [PATCH] Update devtools --- packages/react-devtools-inline/README.md | 8 +++----- packages/react-devtools-shell/src/app/index.js | 8 ++------ packages/react-devtools-shell/src/e2e/app.js | 4 ++-- packages/react-devtools-shell/src/e2e/devtools.js | 3 ++- packages/react-devtools-shell/webpack.config.js | 1 + packages/react-dom/client.js | 4 ++-- scripts/shared/inlinedHostConfigs.js | 4 ++++ 7 files changed, 16 insertions(+), 16 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