Download react-query/examples/react/nextjs-app-prefetching/app/providers.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs-app-prefetching/app/providers.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs-app-prefetching/app/providers.tsx
-
curl -L -o providers.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/react-query/examples/react/nextjs-app-prefetching/app/providers.tsx
492 Bytes
| 'use client' | |
| import { QueryClientProvider } from '@tanstack/react-query' | |
| import { ReactQueryDevtools } from '@tanstack/react-query-devtools' | |
| import { getQueryClient } from '@/app/get-query-client' | |
| import type * as React from 'react' | |
| export default function Providers({ children }: { children: React.ReactNode }) { | |
| const queryClient = getQueryClient() | |
| return ( | |
| <QueryClientProvider client={queryClient}> | |
| {children} | |
| <ReactQueryDevtools /> | |
| </QueryClientProvider> | |
| ) | |
| } | |