What is currently painful or complicated about web development, and how can we compress it into a single line of code?
That question has guided Livewire since day one.
Consider the most basic interaction in your app: a user presses a button, and something happens on the server.
In Livewire, it looks like this:
That is all the code required to give your users a button that talks to the server.
Nothing else.
Every bit of server/client ceremony that can be removed has been removed:
- No API endpoint to design
- No schema to adhere to
- No REST vs GraphQL debate
- No fetch request to write
- No loading state to track
- No flaky or missing error handling
- No annoying build pipeline to update
- No ceremony for a dang button
Just a button wired up to a method.
That small example is the whole philosophy.
Livewire exists to collapse the distance between what your users do and how your application responds.