Re:Don’t Build a General Purpose API to Power Your Own Front...
by loloquwowndueo on Sunday August 20, 2023 @06:02AM
(#37197698)
You can still return html partials from your endpoints and use htmx to swap content without a full reload :)
[ Parent
| on HN ]
Re:Don’t Build a General Purpose API to Power Your Own Front...
by JaggerJo on Sunday August 20, 2023 @06:05AM
(#37197714)
yes, but then it’s not one request per page
Re:Don’t Build a General Purpose API to Power Your Own Front...
by loloquwowndueo on Sunday August 20, 2023 @06:15AM
(#37197740)
Only if there’s an update - htmx will encourage you to render full html pages but still gives you the ability to do in-place updates which is what most folks think a JS front end with a json Api backend and client side rendering is needed for.