Htmx is a nice library to know about that makes frontend = backend. Include strategic js (htmx.js) to not write any more js and compose an interactive website/application in HTML only. Use your favorite back end to create routes that return partial HTML that is swapped in on event triggers (transclusion).