Download client/src/index.js from linuxrun/deer: direct link, hf CLI and curl.
- Browser
- Download file 813 Bytes
-
https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/index.js
- Command line
-
hf download hf://spaces/linuxrun/deer/client/src/index.js
-
curl -L -o index.js https://huggingface.co/spaces/linuxrun/deer/resolve/main/client/src/index.js
813 Bytes
| import 'normalize.css'; | |
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import 'webrtc-adapter'; | |
| import { Provider } from 'react-redux'; | |
| import ReactGA from 'react-ga'; | |
| import { | |
| BrowserRouter as Router, | |
| } from 'react-router-dom'; | |
| import App from './components/App'; | |
| import configureStore from './store/configureStore'; | |
| import configureWS from './actions/configureWS'; | |
| import './common/global.css'; | |
| const store = configureStore(); | |
| configureWS(store.dispatch); | |
| // Initialize Google Analytics | |
| if (process.env.NODE_ENV === 'production') { | |
| ReactGA.initialize('UA-131382726-2'); | |
| ReactGA.pageview(window.location.pathname + window.location.search); | |
| } | |
| ReactDOM.render( | |
| <Provider | |
| store={store} | |
| > | |
| <Router> | |
| <App /> | |
| </Router> | |
| </Provider>, | |
| document.getElementById('root'), | |
| ); | |