We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ca8dfc + 88735ba commit 49aa826Copy full SHA for 49aa826
src/index.js
@@ -1,17 +1,16 @@
1
import 'react-app-polyfill/stable'
2
import 'core-js'
3
import React from 'react'
4
-import ReactDOM from 'react-dom'
+import { createRoot } from 'react-dom/client'
5
import App from './App'
6
import reportWebVitals from './reportWebVitals'
7
import { Provider } from 'react-redux'
8
import store from './store'
9
10
-ReactDOM.render(
+createRoot(document.getElementById('root')).render(
11
<Provider store={store}>
12
<App />
13
</Provider>,
14
- document.getElementById('root'),
15
)
16
17
// If you want to start measuring performance in your app, pass a function
0 commit comments