react.js - Can laravel and reactjs be used together?
怪我咯
怪我咯 2017-05-16 16:54:31
0
3
545

Can laravel and reactjs be used together?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(3)
仅有的幸福

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!