Skip to content

Commit 4e3ed4f

Browse files
committed
updated react's createRoot render method
1 parent 1af0a72 commit 4e3ed4f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/index.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@ import ReactDOM from 'react-dom';
33
import './index.css';
44
import App from './App';
55

6-
ReactDOM.render(
6+
ReactDOM.createRoot(document.getElementById('root')).render(
77
<React.StrictMode>
88
<App />
9-
</React.StrictMode>,
10-
document.getElementById('root')
11-
);
9+
</React.StrictMode>
10+
)

0 commit comments

Comments
 (0)