Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

index.tsx

14 lines350 Bytes

1import React from 'react'
2import ReactDOM from 'react-dom/client'
3import App from './App'
4import { worker } from './api'
5​
6worker.start()
7​
8const rootElement = document.getElementById('root')
9if (!rootElement) throw new Error('Missing #root element')
10ReactDOM.createRoot(rootElement).render(
11 <div style={{ padding: '16px' }}>
12 <App />
13 </div>,