Is node.js(React) used only as a client?

Asked 2 years ago, Updated 2 years ago, 145 views

Does the API server build and use the client written in tomcat and React in node.js form?

If you look at the React example, they all add it to node.js.

If so, do you use node.js as a web server?I wonder if it can be used on web servers such as Apache.

node.js react

2022-09-22 18:14

1 Answers

Recent web client tasks are very complicated.

It is not an era where only .js files were modified as before, but it is an era when we need to develop them using es6 grammar.But the problem is that current browsers can't provide all of the es6 grammar, so you have to use polyfill. This means that even browsers that do not support es6 must use a module (babel) that converts the es6 functionality to be available. Not only that, but you have to tie it with a webpack (bundling)

And today's web clients leverage the framework because of its large scale and complexity. Typically, angular, react, and vue are popular frameworks, and many modules need to be installed together to use them.

However, js does not have a package management function. You have to get js every time. We treat those problems with node npm and use node to make it easier to test the web client.

Angular, react, vue, etc. are provided by client tools, but these are also managed by using npm.

Recent nodes are also essential for client-side development.


2022-09-22 18:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.