snapshot of https://github.com/TanStack/query.git (main, 2026-09-16; blobs > 131072B omitted)
This commit is contained in:
14
examples/react/offline/src/index.tsx
Normal file
14
examples/react/offline/src/index.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import React from 'react'
|
||||
import ReactDOM from 'react-dom/client'
|
||||
import App from './App'
|
||||
import { worker } from './api'
|
||||
|
||||
worker.start()
|
||||
|
||||
const rootElement = document.getElementById('root')
|
||||
if (!rootElement) throw new Error('Missing #root element')
|
||||
ReactDOM.createRoot(rootElement).render(
|
||||
<div style={{ padding: '16px' }}>
|
||||
<App />
|
||||
</div>,
|
||||
)
|
||||
Reference in New Issue
Block a user