Fix issue #14 and bump react to v18
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import ReactDOM from 'react-dom'
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import { App } from './src/App'
|
||||
|
||||
const root = document.getElementById('root')
|
||||
ReactDOM.render(<App />, root)
|
||||
const root = ReactDOM.createRoot(document.getElementById('root')!)
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App></App>
|
||||
</React.StrictMode>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user