diff --git a/src/docs/index.js b/src/docs/index.js index 37fb847..56e3a55 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();