TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is it better to start a front-end feature component first or API first?

1 pointsby abhproabout 3 years ago
By API, I mean whatever calls that are managing your front-end data. For example, if I had many user inputs that managed closely related data, should I start from a user perspective and build out all the components with empty calls? Or should I define and build out all the calls themselves before even thinking about the components (assuming the spec isn't super strict)? Fwiw I'm assuming a reactive, data-driven front-end. Also assuming the priority is extensibility. Does any of that makes sense lol

1 comment

schwartzworldabout 3 years ago
I like building the components first because it helps avoid coupling them with the API response, but I have done it both ways.<p>The big benefit of building the components first is that you don&#x27;t get blocked waiting for the backend dev to finish building the endpoints.