Skip to content

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
- Fix: Import createRoot from "react-dom/client"
  • Loading branch information
SafdarJamal committed May 10, 2022
1 parent 29a39ee commit 7b40bf4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';

ReactDOM.createRoot(document.getElementById('root')).render(
const root = ReactDOM.createRoot(document.getElementById('root'));

root.render(
<React.StrictMode>
<App />
</React.StrictMode>
)
);

0 comments on commit 7b40bf4

Please sign in to comment.