|
|
|
|
|
by simonbarker87
731 days ago
|
|
You should be using the same templates/partials/fragments/components that render in your initial page load as your responses to page updates. So to render a table you render each row from a row component - then in response to updating a row in the table your backend end point returns the row component and then htmx swaps it out and rebinds everything. Also, one big aim of htmx and this approach is to remerge the backend and frontend, like the old days. This is the aim of HATEOS (hypermedia as the engine of state) and if you came up in web dev in the past 12 years or so then it’s going to feel very alien. And honestly? Yes I think everyone should be a generalist otherwise you have just siloed your stack in away that increases both tech and business risk. Sure have someone who is an expert where needed but they should also be able to touch the full stack. Be a T, broad and deep on one thing. |
|