Download react-query/examples/react/nextjs/src/pages/_app.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 612 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/pages/_app.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/pages/_app.tsx
-
curl -L -o _app.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs/src/pages/_app.tsx
612 Bytes
| import React from 'react' | |
| import { | |
| HydrationBoundary, | |
| QueryClient, | |
| QueryClientProvider, | |
| } from '@tanstack/react-query' | |
| import { ReactQueryDevtools } from '@tanstack/react-query-devtools' | |
| import type { AppProps } from 'next/app' | |
| export default function MyApp({ Component, pageProps }: AppProps) { | |
| const [queryClient] = React.useState(() => new QueryClient()) | |
| return ( | |
| <QueryClientProvider client={queryClient}> | |
| <HydrationBoundary state={pageProps.dehydratedState}> | |
| <Component {...pageProps} /> | |
| </HydrationBoundary> | |
| <ReactQueryDevtools /> | |
| </QueryClientProvider> | |
| ) | |
| } | |