Download next.js/examples/api-routes-apollo-server-and-client-auth/pages/_app.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 335 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/api-routes-apollo-server-and-client-auth/pages/_app.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/examples/api-routes-apollo-server-and-client-auth/pages/_app.tsx
-
curl -L -o _app.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/examples/api-routes-apollo-server-and-client-auth/pages/_app.tsx
335 Bytes
| import { ApolloProvider } from "@apollo/client"; | |
| import { useApollo } from "../apollo/client"; | |
| export default function App({ Component, pageProps }) { | |
| const apolloClient = useApollo(pageProps.initialApolloState); | |
| return ( | |
| <ApolloProvider client={apolloClient}> | |
| <Component {...pageProps} /> | |
| </ApolloProvider> | |
| ); | |
| } | |