diff --git a/src/index.tsx b/src/index.tsx index dd1c38f..35a930f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,11 +1,9 @@ import React from 'react'; -import ReactDOM from 'react-dom'; import App from './App'; -ReactDOM.render( - - - , - document.getElementById('root') -); +import { createRoot } from 'react-dom/client'; + +const container = document.getElementById('root'); +const root = createRoot(container!); +root.render();