Relative Content

Tag Archive for reactjsapireact-hooksreact-queryjson-server

Why is my React Query request returning html instead of data?

I am trying to use a react query hook I made to make a request to mock data using json-server, but when the call is made it just returns an html document. I am trying to figure out what I did wrong, so any help would be appreciated. My code is below. I console logged the response also