react . js 和 Node.js 的区别

原文:https://www . geesforgeks . org/difference-react-js-and-node-js/

1。react . js: 这是脸书 2013 年开发的 Javascript 库。这个库是为了改进和增强网络应用程序的用户界面而开发的,但是随着时间的推移,它已经发展了很多。它是开源的,支持不同的内置功能和模块,如表单模块、路由模块等。ReactJS 也用于制作单页网络应用程序。

2。NodeJS: 这是一种服务器端语言,使用 javascript 运行时环境来执行要在浏览器外部执行的 javascript 代码。它是开源的,通过 NPM 支持很多模块,叫做节点包管理器。Nodejs 是单线程的,它使用承诺,因此速度更快,更健壮。 在浏览器外执行 javascript 代码是一个 javascript 运行时环境。它是开源的,通过 NPM 支持很多模块,叫做节点包管理器。Nodejs 是单线程的,它使用承诺,因此速度更快,更健壮。

react . js 和 NodeJS 的区别:

| s No. | ReactJS | NodeJS(节点名称) | | --- | --- | --- | | 1。 | It was developed by Facebook **.** | It was developed by **Ryan Dahl.** | | 2。 | Launched in 2003 | Launched in 2009. | | 3。 | Is a library for developing UI. | This is a JavaScript runtime environment that helps to execute JavaScript outside the browser. | | 4。 | Basically used in the client. | Used for server-side development and client-side development and JavaScript. | | 5。 | Written in pure vanilla JavaScript. | 用 c、c++、javascript 编写。 | | 6。 | Used to develop single-page applications. | To create an extensible HTTP server, you can use fast or simple HTTP modules. | | 7。 | Introduce react native to support Android and Internet. | Only the web is supported. | | 8。 | There is no microservice and API support. | You can create microservices and APIs with nodeJS. | | 9。 | Support for two front ends. | There is not much support for the front end. | | 10。 | It helps to create simple UI test cases. | Server-side test cases that support jasmine. |