Defining API functions
When I'm developing a web application I prefer to abstract the server communication logic into asynchronous functions.
Usually I would have an api.(js|ts) module where I would have a function for each endpoint.
For example if I want to make a GET req...
ivanov.hashnode.dev1 min read