Answer the question
In order to leave comments, you need to log in
How is the integration between React and PHP application (Phalcon)?
I am currently writing the front-end part of the application in React (create-react-app). Then I plan to somehow connect it to the API, which is in PHP, namely, I use Phalcon as a framework.
You know, I'm somehow already lost... I don't fully understand how the integration between these technologies takes place, if you can call them that.
Where can I read more about this?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Here you need to look for questions on the toaster, it often happens, but the search here is not the most suitable.
In fact, your backend is an API, you can make requests to it, for example GET to login (pass email + password) => get the user object if successful.
And so everything else, for example GET news -> get a list of news, and on the client you already draw a template with react. That is, PHP templating is not used at all, only for the API.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question