Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Is it better to start a front-end feature component first or API first?
1 point by abhpro on March 15, 2022 | hide | past | favorite | 1 comment
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


I like building the components first because it helps avoid coupling them with the API response, but I have done it both ways.

The big benefit of building the components first is that you don't get blocked waiting for the backend dev to finish building the endpoints.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: