mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? We can use codspeed for profiling the build performance, considering that these apps are very small. ### Why? We need an e2e benchmark.
22 lines
699 B
TypeScript
22 lines
699 B
TypeScript
import * as React from 'react'
|
|
import * as ReactDOM from 'react-dom/client'
|
|
import ThemeProvider from '@mui/material/styles/ThemeProvider'
|
|
import CssBaseline from '@mui/material/CssBaseline'
|
|
import InitColorSchemeScript from '@mui/material/InitColorSchemeScript'
|
|
import ModeSwitch from './components/ModeSwitch'
|
|
import theme from './theme'
|
|
import App from './App'
|
|
|
|
ReactDOM.createRoot(document.getElementById('root')!).render(
|
|
<React.StrictMode>
|
|
<ThemeProvider theme={theme}>
|
|
<InitColorSchemeScript attribute="class" />
|
|
<ThemeProvider theme={theme}>
|
|
<CssBaseline />
|
|
<ModeSwitch />
|
|
<App />
|
|
</ThemeProvider>
|
|
</ThemeProvider>
|
|
</React.StrictMode>
|
|
)
|