DEV Community

Gurupal Singh
Gurupal Singh

Posted on

send json body in react useQuery ..!!

Hi, is there any way to send json body in GET request of react useQuery ?

for example i want to send below id in json body :-

{
"id": 21
}

Top comments (2)

Collapse
 
rafh profile image
Rafael Heard

You may have better luck asking this on stackoverflow.com

Collapse
 
shubhamhkr profile image
shubhamhkr

You can't add body in get request