Spaces:
Sleeping
Sleeping
Download src/main.jsx from randome-games/proxy: direct link, hf CLI and curl.
- Browser
- Download file 618 Bytes
-
https://huggingface.co/spaces/randome-games/proxy/resolve/main/src/main.jsx
- Command line
-
hf download hf://spaces/randome-games/proxy/src/main.jsx
-
curl -L -o main.jsx https://huggingface.co/spaces/randome-games/proxy/resolve/main/src/main.jsx
618 Bytes
| import { startTransition } from 'react'; | |
| import { createRoot } from 'react-dom/client'; | |
| import { BrowserRouter, HashRouter } from 'react-router-dom'; | |
| import ReactGA from 'react-ga4'; | |
| import App from './App'; | |
| typeof window != 'undefined' && | |
| ('requestIdleCallback' in window | |
| ? requestIdleCallback(() => ReactGA.initialize('G-HWLK0PZVBM')) | |
| : setTimeout(() => ReactGA.initialize('G-HWLK0PZVBM'), 0)); | |
| const root = createRoot(document.getElementById('root')); | |
| const Router = isStaticBuild ? HashRouter : BrowserRouter; | |
| startTransition(() => { | |
| root.render( | |
| <Router> | |
| <App /> | |
| </Router>, | |
| ); | |
| }); | |