May 30, 2022
Fair point about React itself being a leaky abstraction 😅
I agree that the view layer shouldn't have any business logic but in terms of making calls to the api, for React I can't imagine where else you would put it. Of course you could have a controller with the api call which the view calls but ultimately the view has to communicate with the controller to make the api call. I'm curious as to how else you'd do it for React?