search

Home  >  Q&A  >  body text

react.js - Can laravel and reactjs be used together?

Can laravel and reactjs be used together?

怪我咯怪我咯2816 days ago627

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福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)

    reply
    0
  • 巴扎黑

    巴扎黑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

    reply
    0
  • 滿天的星座

    滿天的星座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

    reply
    0
  • Cancelreply