Download apps/vis/web/src/main.tsx from SaylorTwift/kimi-code: direct link, hf CLI and curl.
- Browser
- Download file 756 Bytes
-
https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/main.tsx
- Command line
-
hf download hf://SaylorTwift/kimi-code/apps/vis/web/src/main.tsx
-
curl -L -o main.tsx https://huggingface.co/SaylorTwift/kimi-code/resolve/main/apps/vis/web/src/main.tsx
756 Bytes
| import { StrictMode } from 'react'; | |
| import { createRoot } from 'react-dom/client'; | |
| import { QueryClient, QueryClientProvider } from '@tanstack/react-query'; | |
| import { BrowserRouter } from 'react-router-dom'; | |
| import { App } from './App'; | |
| import './theme.css'; | |
| const queryClient = new QueryClient({ | |
| defaultOptions: { | |
| queries: { | |
| staleTime: Infinity, | |
| gcTime: 30 * 60 * 1000, | |
| retry: false, | |
| refetchOnWindowFocus: false, | |
| }, | |
| }, | |
| }); | |
| const rootEl = document.querySelector('#root'); | |
| if (!rootEl) throw new Error('#root not found'); | |
| createRoot(rootEl).render( | |
| <StrictMode> | |
| <QueryClientProvider client={queryClient}> | |
| <BrowserRouter> | |
| <App /> | |
| </BrowserRouter> | |
| </QueryClientProvider> | |
| </StrictMode>, | |
| ); | |