now everything works with React ToolKit
This commit is contained in:
+4
-3
@@ -1,8 +1,9 @@
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {createRoot} from 'react-dom/client'
|
||||
import App from './App';
|
||||
|
||||
// Level - 0
|
||||
//Program stars from Here. Imports and renders App.
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById('root'));
|
||||
|
||||
const root = createRoot(document.getElementById('root'));
|
||||
root.render(<App/>)
|
||||
|
||||
Reference in New Issue
Block a user