Download spectrum/src/views/thread/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 515 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/thread/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/views/thread/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/views/thread/index.js
515 Bytes
| // @flow | |
| import React from 'react'; | |
| import Loadable from 'react-loadable'; | |
| import { ErrorView, LoadingView } from 'src/views/viewHelpers'; | |
| /* prettier-ignore */ | |
| const loader = () => import('./container'/* webpackChunkName: "Thread" */); | |
| const getLoading = () => ({ error, pastDelay }) => { | |
| if (error) { | |
| return <ErrorView />; | |
| } else if (pastDelay) { | |
| return <LoadingView />; | |
| } | |
| return null; | |
| }; | |
| export const ThreadView = Loadable({ | |
| loader, | |
| loading: getLoading(), | |
| modules: ['./container'], | |
| }); | |