Livewire or React Front-end, which is better for a Interactive website?
I have to build a web app with lots of filter and sorting at front end, I will also need to add small functionality like add to favorite (based on localstorage). You can imagine it like a ecommerce category pages where you filter products based on different features either by check boxes at left or dropdown at top. It will have pagination/load more as well.
So based on this requirement, what will be better for front-end ? Livewire or React? Also it need to be SEO friendly, so no SPA. I am familiar with React but haven't used Livewire before. My other concern with Livewire is that it makes lot of server calls using ajax causing more load on server?
@jlrdw Right now, I am learning more about Livewire, but I am more familiar with React. For back end I know enough Laravel to create a robust one for my use case.
Problem with using React/Intertia is that It will be SPA by default, and I don't want to use Inertia solution for SSR.
Is there any easy way to create seo friendly front-end using React?
@sannjay you can make blade pages as normal and sprinkle in small interactive elements using react. I believe that's how laracasts was originally made (with vue)
@Sinnbeck Yes that could be one possible way. Can you comment on Livewire feasibility? I am not afraid of leanring a new Laravel tool, but I want to make sure it is good enough for my use case.
@sannjay I'm probably the wrong advocate to ask. Livewire is very cool but I personally prefer inertia + react and would happily set up ssr to get seo if needed.
I think @snapey is the most knowledgeable of us in regards to livewire (sorry for tagging you :))
If the only thing limiting Inertia as an option for you is not being interested in the SSR setup, there's always services such as Prerender.io (which can also be self hosted I think) and it seems there are also already made laravel integrations for it https://github.com/JeroenNoten/laravel-prerender
Now on Intertia vs Livewire, I can't comment on that. I think it depends mostly on your experience and preferences, both are great and bot have pros and cons in my opinion.
@sannjay
I've been using both Livewire and ReactJS for the past 2 years.
In my experience, both frameworks excel in ease of implementation and their reusable component systems:
1. For frontend-intensive applications, ReactJS is my preferred choice.
2. When dealing with backend-heavy applications, Livewire is exceptionally effective.
Summary: From my observations, ReactJS performs well with smaller databases, while Livewire shines with larger databases.
Note: This is my personal viewpoint; others may have different preferences.