Answer the question
In order to leave comments, you need to log in
How to organize yii+react link?
I have such a question, I want to write the frontend in reactjs and the backend directly in yii2. Based on yii2. If I roughly understand how to implement it, but not quite. I remove everything from the frontend folder there, add index.html and all react components. Am I thinking right? and backend i just leave the same only use rest api
Answer the question
In order to leave comments, you need to log in
React can be anywhere, as long as it can be run from a browser. Put the yii backend in a separate 'backend_api' folder, and let react be in the root.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question