♻️ refactor(App): make explicit root element
This commit is contained in:
+2
-1
@@ -7,7 +7,8 @@ import App from './App.tsx'
|
|||||||
import theme from 'style/theme.ts'
|
import theme from 'style/theme.ts'
|
||||||
import './index.css'
|
import './index.css'
|
||||||
|
|
||||||
ReactDOM.createRoot(document.getElementById('root')!).render(
|
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
|
||||||
|
root.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<ThemeProvider theme={theme}>
|
<ThemeProvider theme={theme}>
|
||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
|
|||||||
Reference in New Issue
Block a user