diff options
| author | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 11:33:40 +0300 |
|---|---|---|
| committer | Jan Tuomi <jans.tuomi@gmail.com> | 2021-06-30 11:33:40 +0300 |
| commit | f021b52028f5965516671b7f53e7e71543a8ae52 (patch) | |
| tree | 62a0f9499bd75c1bc46de09fda3a0e0ce092d70d /frontend/pages/_app.tsx | |
| parent | ac31a7d9d43d3dcaa37906569dcb8eaf8429b3bf (diff) | |
Do things
Diffstat (limited to 'frontend/pages/_app.tsx')
| -rw-r--r-- | frontend/pages/_app.tsx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/pages/_app.tsx b/frontend/pages/_app.tsx new file mode 100644 index 0000000..aa87acf --- /dev/null +++ b/frontend/pages/_app.tsx @@ -0,0 +1,16 @@ +import type { AppProps } from "next/app"; +import { ReactElement } from "react"; +import { QueryClient, QueryClientProvider } from "react-query"; +import "../styles/globals.css"; + +const queryClient = new QueryClient(); + +const MyApp = ({ Component, pageProps }: AppProps): ReactElement => { + return ( + <QueryClientProvider client={queryClient}> + <Component {...pageProps} /> + </QueryClientProvider> + ); +}; + +export default MyApp; |
