H
H
hollanditkzn2018-02-05 09:17:09
Frontend
hollanditkzn, 2018-02-05 09:17:09

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

1 answer(s)
S
Sasha Zhelezovsky, 2018-02-05
@hollanditkzn

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 question

Ask a Question

731 491 924 answers to any question