Skip to content
Advertisement

General questions about php and react.js [closed]

I’m about to learn react.js but I have a lot of questions,

  1. if I’m learning react do I need PHP?
  2. Do I need PHP with react.js and how will I use it inside PHP if possible
  3. if I do PHP do I need React?

Advertisement

Answer

React.js is a javascript front-end library. It is fully written in javascript and that is the only language you need to know to use it.

PHP is a scripting language that is generally used to create the backend of your applications.

So yes you could technically develop your backend using PHP and then use React to create the frontend of your application, however it would be easier to simply use javascript to create both the backend and the frontend of your project.

If you’re interested in backend development using javascript, I recommend you start by looking at node.js and the express.js library.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement