Download wp-calypso/packages/components/src/spinner/example.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 705 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/spinner/example.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/packages/components/src/spinner/example.tsx
-
curl -L -o example.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/packages/components/src/spinner/example.tsx
705 Bytes
| import { PureComponent } from 'react'; | |
| import { Spinner } from '../'; | |
| export class SpinnerExample extends PureComponent { | |
| static displayName = 'Spinner'; | |
| render() { | |
| return ( | |
| <div> | |
| <p> | |
| <strong>Please exercise caution in deciding to use a spinner in your component.</strong> A | |
| lone spinner is a poor user-experience and conveys little context to what the user should | |
| expect from the page. Refer to{ ' ' } | |
| <a href="/devdocs/docs/reactivity.md"> | |
| the <em>Reactivity and Loading States</em> guide | |
| </a>{ ' ' } | |
| for more information on building fast interfaces and making the most of data already | |
| available to use. | |
| </p> | |
| <Spinner /> | |
| </div> | |
| ); | |
| } | |
| } | |