Answer the question
In order to leave comments, you need to log in
How to use ReactJS if the back-end is in PHP?
I started to study ReactJS, understood the principle of the library, but deepened further, it is recommended to study Redux, React-router, Webpack, NPM and so on. That is, all further study comes down to developing a NodeJS application, while I use php.
I have a question, how can all these chips (Redux, React-router and others) be used on php or are these features of developing a "correct" application on nodejs?
Do I understand correctly that reactjs for php (and everything else) is just component rendering? and reduxes, react-routers and Flux architecture are for development on node.js?
Answer the question
In order to leave comments, you need to log in
Вам стоит получше разобраться в теме одностраничных (single page applictaion, SPA) приложений и такого понятия как REST API. То есть, вы на пхп будете делать только "апишку", которая будет отдавать json-данные, например - список продуктов, а на реакте уже это все показывать. Причем, ваше SPA может и скорее всего будет использовать и flux/redux и react-router и npm, но это все нисколько не помешает бэкэнду на php.
No, you misunderstand, react is a component library, and all these tips come down to making your life easier in the frontend, the fact that you are recommended to use npm does not mean that you need to replace the backend, the node is not only the backend, it is also a great scripting language general purpose, ranging from banal console scripts to a web server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question