How to use ReactJS and Laravel

How to combine Laravel and React? I mean, Laravel uses a blade for her appearance, how to change it to React instead of a blade? There were so many Laravel and Angular lessons, but I can’t find them for React and Laravel?

Any Laravel and ReactJS tutorial links?

+5
source share
2 answers

If you use Laravel to create a REST web service (API), you may not need Blade. You just return JSON data. The React application can then make Laravel API calls to the data and process it directly in the browser. You do not need Blade for this.

You should use Laravel to provide a basic view (index.blade.php) that will include the React JS application, but then after that all views and routing will be processed by React. Here is the link to get you started. https://medium.com/@rajikaimal/laravel-loves-reactjs-8c02f8b9d1d5

+3
source

I created a laravel reactjs starter project. see below github project. I do not use mix api laravel, since I want the responsejs application to be portable to any other server or standalone application.

link below

https://medium.com/@padmanabhavn/bringing-laravel-and-reactjs-together-8c970cb0f65d

0
source

All Articles