Can laravel and reactjs be used together?
仅有的幸福2017-05-16 16:56:31
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)
巴扎黑2017-05-16 16:56:31
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
滿天的星座2017-05-16 16:56:31
react.js is only responsible for v
Just use whatever you want on the backend to provide the data interface