Download react-query/examples/react/nextjs/src/pages/client-only.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 308 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/pages/client-only.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/pages/client-only.tsx
-
curl -L -o client-only.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/pages/client-only.tsx
308 Bytes
| import React from 'react' | |
| import { Header, InfoBox, Layout, PostList } from '../components' | |
| const ClientOnly = () => { | |
| return ( | |
| <Layout> | |
| <Header /> | |
| <InfoBox>ℹ️ This data is loaded on client and not prefetched</InfoBox> | |
| <PostList /> | |
| </Layout> | |
| ) | |
| } | |
| export default ClientOnly | |