Hello Laravel developers! 🖐️
Which front-end technology do you usually integrate with #Laravel?
A) Alpine.js
B) Vue.js
C) React.js
Alpine for small things, Inertia+Vue for projects that requires complex user interactions.
A - if I need more complex data stuff I head straight for Livewire... :)
VueJs, but I usually don't integrate it with Laravel, I create a new project in a different repository. Laravel is used exclusively as a backend application.
Yes, I work on the Rest API, but not always. There is one application that can send so much data in a parameter (conditions for filtering data) that a GET request just can't handle it. So they decided to remove CRUD methods altogether and leave only POST requests. That is, creating, receiving, modifying, deleting and restoring information only through POST requests.
Many reasons, but the most important: JSX, hooks, useState, Vue is better etc.
Alpine for the tiny sprinkles of reactivity, like a dropdown or changing a button text after clicking.
Vue for anything more complex.
Never used React, but it seems more popular than Vue outwith the Laravel community.
Yeah, React is more popular than Vue outwith the laravel community but there has been a noticeable increase in developers using React with Laravel since the introduction of Inertia.js.
A) AlpineJS is always my first choice if given the opportunity
React with inertia. And zustand if I need really complex global state
It’s a plugin I created that lets you dynamically update content on the page from the server. It tackles a lot of use cases you might use React or Vue for but it’s only 3Kb alpine-ajax.js.org