Comment Comment by ricksharp Everybody makes state management hard.All you need is a simple layer to make your typed api calls.export const ApiService = { return { getSomeStuff: async () => ..., postSomething: ..., etc, }; } parent ricksharp 6 years ago
All you need is a simple layer to make your typed api calls.
export const ApiService = {