parent
a797af34d4
commit
f44183bd5b
@ -1,11 +1,14 @@ |
||||
import {StrictMode} from 'react' |
||||
import React from 'react' |
||||
import * as ReactDOM from 'react-dom' |
||||
|
||||
import { createRoot } from 'react-dom/client'; |
||||
import App from './app/app' |
||||
|
||||
ReactDOM.render( |
||||
<StrictMode> |
||||
|
||||
const container = document.getElementById('root'); |
||||
|
||||
if (container) { |
||||
createRoot(container).render(<React.StrictMode> |
||||
<App /> |
||||
</StrictMode>, |
||||
document.getElementById('root') |
||||
) |
||||
</React.StrictMode>); |
||||
} |
||||
|
||||
|
@ -1,11 +1,13 @@ |
||||
import {StrictMode} from 'react' |
||||
import React from 'react' |
||||
import * as ReactDOM from 'react-dom' |
||||
|
||||
import { createRoot } from 'react-dom/client'; |
||||
import App from './app/app' |
||||
|
||||
ReactDOM.render( |
||||
<StrictMode> |
||||
const container = document.getElementById('root'); |
||||
|
||||
if (container) { |
||||
createRoot(container).render(<React.StrictMode> |
||||
<App /> |
||||
</StrictMode>, |
||||
document.getElementById('root') |
||||
) |
||||
</React.StrictMode>); |
||||
} |
||||
|
||||
|
Loading…
Reference in new issue