Open History to see the last commit
1import ReactDOM from 'react-dom/client'
2import App from './App'
3import { worker } from './mocks'
4β
5const rootElement = document.getElementById('root')
6if (!rootElement) throw new Error('Missing #root element')
7β
8worker.start().then(() => {
9 ReactDOM.createRoot(rootElement).render(
10 <div style={{ padding: '16px' }}>
11 <App />
12 </div>,
13 )
14})