2 ms·
I'd be inclined to agree with you once the application has reached a certain level of complexity. If you're doing anything vaguely complicated around how you fe
by mxxx 10y ago
I'd be inclined to agree with you once the application has reached a certain level of complexity. If you're doing anything vaguely complicated around how you fetch/display/mutate your server data, then it can be a much cleaner pattern to keep a REST/GraphQL API separate from your client logic.
But on a super simple app (static site, basically), you have to deal with the overhead of the things that @aclimatt is referring to (browser history, routing, loading states etc) that basically come out of the box in your browser before you break them.