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

main.tsx

16 lines324 Bytes

1import { StrictMode } from 'react'
2import { createRoot } from 'react-dom/client'
3import { App } from '@/App'
4import '@/styles.css'
5​
6const container = document.getElementById('root')
7​
8if (!container) {
9 throw new Error('Root element not found')
11​
12createRoot(container).render(
13 <StrictMode>
14 <App />
15 </StrictMode>,