Frontend & Web
Promise Decoration: Fetch Ergonomics That Won't Break Your Response
You've typed await response.json() a hundred times too many. One dev's Promise decoration trick delivers client.get('/api/todos').json() without sacrificing native fetch semantics.