1. React.js :
这是 Facebook 于 2013 年开发的 Javascript 库。开发该库是为了改进和增强 Web 应用程序的 UI,但随着时间的推移,它已经发展了很多。它是开源的,支持不同的内置功能和模块,如表单模块、路由模块等。 ReactJS 还用于制作单页 Web 应用程序。
2.节点:
这是一种服务器端语言,它使用 javascript 运行时环境来执行 javascript 代码以在浏览器外执行。它是一个开源并通过 NPM 支持许多模块,称为节点包管理器。 Nodejs 是单线程的,它使用 promise,因此它更快更健壮。
它是一个 javascript 运行时环境,用于在浏览器外执行 javascript 代码。它是一个开源并通过 NPM 支持许多模块,称为节点包管理器。 Nodejs 是单线程的,它使用 promise,因此它更快更健壮。
React.js 和 NodeJS 的区别:
S.No. | ReactJS | NodeJS |
---|---|---|
1. | It was developed by Facebook. |
It was developed by Ryan Dahl. |
2. | It was launched in 2003 | It was launched in 2009. |
3. | It is a library for developing UI. | It is a JavaScript runtime environment that helps to execute the JavaScript outside the browser. |
4. | It is basically used in Client-side. | Used for server side development and client-side development as well in JavaScript. |
5. | It is written with pure Vanilla JavaScript. | It is written in C, C++, and JavaScript. |
6. | It is used to develop single-page applications. | It is used to create a scalable HTTP server which can be using express or simple HTTP module. |
7. | It supports both android and web with introduction of react native. | It supports only web. |
8. | No micro-services and API support. | Micro-services and API can be create with nodeJS. |
9. | It provide support for both frontend. | It does not provide much support for frontend. |
10. | It helps to create easy UI test cases. | It supports server side test cases using jasmine. |