A design question about Laravel and Reactjs.

Source: Internet
Author: User
<-- 如果你也想知道答案,请在左侧点个顶,谢谢。
I'm going to use Reactjs to do the V-level work and laravel to do the C and M work. Is this method feasible? Is there any need for this?
In addition, for example login, how blade should be translated into Reactjs's component code, or how can I replace Laravel's front-end template with Reactjs:


  
   

Are there any related project codes that can be referenced by wood? Thanks for sharing

Reply content:

<-- 如果你也想知道答案,请在左侧点个顶,谢谢。
I'm going to use Reactjs to do the V-level work and laravel to do the C and M work. Is this method feasible? Is there any need for this?
In addition, for example login, how blade should be translated into Reactjs's component code, or how can I replace Laravel's front-end template with Reactjs:


  
   

Are there any related project codes that can be referenced by wood? Thanks for sharing

First, it's usually called react.js instead of Reactjs.

To get the most out of react.js, I would suggest a complete separation of the front and back end, only through JSON communication. Instead of using Laravel to output the front-end code

Front end with React-router made isomorphic Web-app, specific code and tutorials can refer to my first answer on SF

The backend only uses Laravel's RESTful API-related parts, the main logic is written in the M layer, the Controller almost no need to write code

Phone code word inconvenience, have time to perfect

You can refer to this React-laravel

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.