diff --git a/src/index.js b/src/index.js index 761dd90..e414aa5 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import React from 'react'; -import ReactDOM from 'react-dom/client'; +import { createRoot } from 'react-dom/client'; import App from './App'; import i18n from './i18n'; @@ -14,7 +14,7 @@ i18n initImmediate: false }) .then(() => { - ReactDOM.createRoot(document.getElementById('app')).render(); + createRoot(document.getElementById('app')).render(); module.hot.accept(); });