First of all, the answer is yes. On the one hand, reactjs is just a view layer thing. You can only use laravel to provide the data interface, and laravel handles user interaction. If you don’t want to stop there, laravel can also have a deeper integration with reactjs. There is a third-party plug-in react-laravel https://github.com/talyssonoc/react-laravel that allows you to achieve server-side rendering that was only possible with node.js as the backend. It requires php-v8js extension support (although I It doesn’t feel so smooth when I use it myself)
First of all, the answer is yes. On the one hand, reactjs is just a view layer thing. You can only use laravel to provide the data interface, and laravel handles user interaction.
If you don’t want to stop there, laravel can also have a deeper integration with reactjs. There is a third-party plug-in react-laravel https://github.com/talyssonoc/react-laravel that allows you to achieve server-side rendering that was only possible with node.js as the backend. It requires php-v8js extension support (although I It doesn’t feel so smooth when I use it myself)
Of course, you can use react.js to make the V layer. Laravel is used as restful back-end api to make M and C to provide data support for react.js
react.js is only responsible for v
Just use whatever you want on the backend to provide the data interface