Heard the insightful podcast „Is htmx the way to Go?“ with htmx creator Carson Gross (@htmx_org) on the changelog podcast.
https://changelog.com/gotime/266
tl;dr: Job market for react is stronger (obviously), but #htmx can enable sweet spot of achieving updates in backend + frontend more quickly (maintainability).
For usage in php, as far as I know:
- Craft CMS: Sprig https://putyourlightson.com/plugins/sprig
- Laravel: laravel-htmx, but you could also use Livewire (similiar approach)
- TYPO3: Topwire https://topwire.dev/
- WordPress: htmxpress (WIP) https://2022.vandragt.com/project/introducing-htmxpress-htmx-for-wordpress/
- Symfony Stimulus (similiar approach) https://symfony.com/bundles/StimulusBundle/current/index.html
What else is out there? Have you already used htmx in real world projects? 🤗
Got some replies here:
- https://social.tchncs.de/@mandrasch/110960463917459161
- https://twitter.com/m_andrasch/status/1695704408552599816
Bonus infos:
htmx decided to not have a build script like Svelte, to enable easier participation for open development https://htmx.org/essays/no-build-step/
@t3dotgg also talked about this sweet spot here:
Top comments (2)
I like the way of htmx, but I never tried it out.
Just one little thing, there is a (major) difference between Laravel Livewire and htmx; Livewire is (without NodeJS server) a SPA and htmx is rendered HTML.
You don't really need a library to use HTMX with Laravel. And it differs from Livewire in the sense that it removes the need for stateful components, a thing that Livewire introduces in Laravel!