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

index.tsx

18 lines359 Bytes

1/* @refresh reload */
2import { render } from 'solid-js/web'
3import App from './App'
4import { worker } from './mocks'
5​
6const root = document.getElementById('root')
7if (!root) throw new Error('Missing #root element')
8​
9worker.start().then(() => {
10 render(
11 () => (
12 <div style={{ padding: '16px' }}>
13 <App />
14 </div>
15 ),
16 root,
17 )
18})