Feb 17, 2025
Axios token integration and tanstack query
tanstack setup
index.js
import { QueryClient } from “@tanstack/react-query”;
export const queryClient = new QueryClient()
Get Mayurpatil’s stories in your inbox
Join Medium for free to get updates from this writer.
main.jsx
services(API calls)
API hooks (mutations, queries)
How to mutate post API
how to fetch data with GET method API
Press enter or click to view image in full size![]()







