--

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?

--

--

Richard Oliver Bray
Richard Oliver Bray

Written by Richard Oliver Bray

Co-founder of orva.studio. Building digital products and teaching others to do the same. Saved by grace.

Responses (2)