Spaces:
No application file
No application file
Download index.tsx from Choup/PyVisionLab: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/Choup/PyVisionLab/resolve/main/index.tsx
- Command line
-
hf download hf://spaces/Choup/PyVisionLab/index.tsx
-
curl -L -o index.tsx https://huggingface.co/spaces/Choup/PyVisionLab/resolve/main/index.tsx
349 Bytes
| import React from 'react'; | |
| import ReactDOM from 'react-dom/client'; | |
| import App from './App'; | |
| const rootElement = document.getElementById('root'); | |
| if (!rootElement) { | |
| throw new Error("Could not find root element to mount to"); | |
| } | |
| const root = ReactDOM.createRoot(rootElement); | |
| root.render( | |
| <React.StrictMode> | |
| <App /> | |
| </React.StrictMode> | |
| ); |