0

nodejs and react.

I am a little confused between nodeJs and react. are these both libraries or frameworks? which one will be better to use. some say node js is for backend and react is for UI. and if the node is for a backend which one should I use between Django and node.

27th Aug 2021, 5:03 AM
Sneha Bhatnagar
Sneha Bhatnagar - avatar
1 Answer
+ 2
Javascript language was initially written to be run inside a web browser. Node.js is a "runtime environment" which allows us to run Javascript code completely without a web browser's help. That is why Node makes JS suitable as a backend language, something that runs on a server, takes and processes web requests. Because of the fact that it does not need a browser, it can avoid some of the limitations that frontend Javascript has, for example related to access to the filesystem, and multithreading. Node is popular because it allows the full stack to be written in a single language (JS) rather than picking different language for backend. React is a Javascript library designed by Facebook, for the purpose of building applications in JS. It gives the developer a convenient model for connecting the data to the user interface. Some call it a framework.. technically it is a library, and often used together with other libraries such as Redux, which manages application state.
27th Aug 2021, 5:20 AM
Tibor Santa
Tibor Santa - avatar