Hacker News new | ask | show | jobs
by RussianCow 2913 days ago
This doesn't actually solve the dilemma of where to put the logic—all you've done is moved the API code into its own object, but your component is still the one controlling the higher-level flow in this case.