Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sort of...

I would describe it as closer to an alternative to hand rolling js, using JQuery, or older templating libraries like Knockout.

Where its at its best is with server rendered frameworks like Django, Laravel, or plane old hand rolled CGI. You can sprinkle in some Alpine with no build steps. It works particularly well with HTMX.

I wouldn't call it a React alternative because there are places where React (or Vue, or Svelt...) are better placed. But there are places they are overkill and it slots in perfectly.

Alpine borrows quite heavily from Vue, it has a very similar template DSL, and uses its reactivity subsystem (I personally think this is very well designed and makes Vue 3 an incredibly good app platform).

I also believe the new Laravel Livewire just released is built on top of Alpine, they are from the same developer.

If I'm doing server side rendering and need to sprinkle in some client side interactivity Alpine is what I reach for.

(You could describe any client side templating system as a React alternative)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: