Setup React Query and QueryClientProvider
lessonDuration 1m 30sFree
To use React Query throughout your application you'll need to import and create a new instance of [QueryClient](https://tanstack.com/query/latest/docs/reference/QueryClient#queryclient) and pass that to the [QueryClientProvider](https://tanstack.com/query/latest/docs/framework/react/reference/QueryClientProvider) component in the root of your app.