Files
next.js/turbopack/benchmark-apps/mui/index.tsx
Donny/강동윤andGitHub cc3c42f864 chore(ci): Configure small benchmark for builds (#79796)
### What?

We can use codspeed for profiling the build performance, considering that these apps are very small.

### Why?

We need an  e2e benchmark.
2025-05-29 21:32:57 +00:00

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>
)