Download spa-github-pages/src/components/ExampleComponent.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spa-github-pages/src/components/ExampleComponent.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spa-github-pages/src/components/ExampleComponent.tsx
-
curl -L -o ExampleComponent.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spa-github-pages/src/components/ExampleComponent.tsx
524 Bytes
| import * as React from 'react'; | |
| import { InteractiveLink } from '../ui/InteractiveLink'; | |
| import { P } from '../ui/Paragraph'; | |
| export const ExampleComponent: React.VFC = () => ( | |
| <div> | |
| <P> | |
| This is an example page. Refresh the page or copy/paste the url to test | |
| out the redirect functionality (this same page should load after the | |
| redirect). | |
| </P> | |
| <InteractiveLink to="/example/two-deep?field1=foo&field2=bar#boom!"> | |
| Example two deep with query and hash | |
| </InteractiveLink> | |
| </div> | |
| ); | |