Thank you for your feedback.

That's another way of doing things. I guess it depends on the size of the project.

For small to medium sized projects having a global setup for API calls might be overkill sometimes.

Also libraries like react-query can offer such values sometime that it will be unwise not to use them to their full potential.

And I am not sure if it will be possible with a Client object properly.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store