Skip to content

Commit

Permalink
Merge pull request #81 from Paker30/create_root
Browse files Browse the repository at this point in the history
fix: import createRoot in the new way
  • Loading branch information
Paker30 authored Jan 12, 2024
2 parents b0ea30b + e0de667 commit 634c468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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';

Expand All @@ -14,7 +14,7 @@ i18n
initImmediate: false
})
.then(() => {
ReactDOM.createRoot(document.getElementById('app')).render(<App />);
createRoot(document.getElementById('app')).render(<App />);

module.hot.accept();
});

0 comments on commit 634c468

Please sign in to comment.