|
|
|
|
|
by NikxDa
278 days ago
|
|
The suggestion to have the server return the table directly starts bringing presentational concerns into the backend, which I am not a big fan of. Having the server return plain JSON means the APIs can be reused across products effortlessly and also means that all style changes can be done in the same codebase. I get reminded of how important this is every time I get to work on an old project that has APIs return HTML that is then being inserted into the DOM by something like jQuery. Figuring it out and updating it is typically a huge mess. |
|
Edit: This could still be way simpler than the "hydration" approach which is so popular.