Defining API functions
May 20, 2021 · 1 min read · 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...
Join discussion