Re:If Not React, Then What?
by jwblackwell on Sunday December 01, 2024 @03:54AM
(#42287185)
I am using Laravel Blade components which are effectively just fully server rendered templates in component style, so you get the benefit of that mental model.
Then you can just add Alpine as necessary.
Fortunately there has been some change in this area. FastHTML is a batteries-included library for Python and there are numerous standalone HTML generation libraries that can be used with other frameworks like Django, e.g. htpy, htmy etc.
I've been using alpine on a static site and it's really quite impressive just how much of "the stuff you probably want js for" it covers. So much so that you can pretty much say "if you can't do it in alpine, maybe we shouldn't do it at all".