Download frontend/src/main.tsx from modventures/character-studio: direct link, hf CLI and curl.
- Browser
- Download file 602 Bytes
-
https://huggingface.co/spaces/modventures/character-studio/resolve/main/frontend/src/main.tsx
- Command line
-
hf download hf://spaces/modventures/character-studio/frontend/src/main.tsx
-
curl -L -o main.tsx https://huggingface.co/spaces/modventures/character-studio/resolve/main/frontend/src/main.tsx
602 Bytes
| import React from 'react'; | |
| import ReactDOM from 'react-dom/client'; | |
| import { BrowserRouter } from 'react-router-dom'; | |
| import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; | |
| import { App } from './app/app'; | |
| import './app/styles.css'; | |
| const client = new QueryClient({ | |
| defaultOptions: { queries: { retry: 1, refetchOnWindowFocus: false } }, | |
| }); | |
| ReactDOM.createRoot(document.getElementById('root')!).render( | |
| <React.StrictMode> | |
| <QueryClientProvider client={client}> | |
| <BrowserRouter> | |
| <App /> | |
| </BrowserRouter> | |
| </QueryClientProvider> | |
| </React.StrictMode>, | |
| ); | |