Ask HN: What should the technical design for a front end feature include?
What should the front end part of an applications technical design represent and consider? With back end, there's the database schema, API endpoints, flow charts for processes. But with the front end, only recently has it become somewhat data heavy. What do you do when asked to submit a technical design as a front end engineer? For reference, at my employment design is a large part of being a senior developer, so I have to do something, I'm not sure what though, and have not been successful in finding examples online.
10 comments
[ 3.2 ms ] story [ 32.4 ms ] thread1. Define function signatures of selectors and action creators. 2. Define the state tree shape.
Action Creators and Selectors translate to the "API endpoints" as it's the public interface to your frontend data model.
The state tree translates to the "database schema".
I would also consider what the data model for client-side persistence (localstorage, cookies) is.
It would simply fall apart otherwise, because you need a long-term plan whether you're working in sprints or not.