From d96e896d3714717382220dc7a4472a9bd41b3393 Mon Sep 17 00:00:00 2001 From: Mengying Fan Date: Fri, 22 Mar 2024 14:02:18 +0200 Subject: [PATCH] Use new api --- src/docs/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/docs/index.js b/src/docs/index.js index 37fb847a..56e3a558 100644 --- a/src/docs/index.js +++ b/src/docs/index.js @@ -1,8 +1,9 @@ import React from 'react'; -import ReactDOM from 'react-dom'; +import { createRoot } from 'react-dom/client'; import App from './app'; import './prism-theme.css'; const container = document.createElement('div'); +const root = createRoot(container); document.body.appendChild(container); -ReactDOM.render(, container); +root.render();