Can Node server host React applications?
P粉764003519
P粉764003519 2024-04-04 14:32:25
0
1
531

I'm very new to backend coding and I'm having a hard time understanding what a "full stack" application would look like. Is that so:

  • A Node-Express server serving index.html, which contains <script src="main.jsx"></script> (if this is the case situation, how will the .jsx content be compiled into javascript for the browser?)
  • A Node-Express server that serves some data (.json) A front-end application (you can initialize with Vite or CRA) that gets the data from that server?

P粉764003519
P粉764003519

reply all(1)
P粉797004644

Both ways are correct, your server can serve content to the client (first case) or send data to the client (json, xml wait).

Please note that when you use React and .jsx components, you need to build the project and serve it via the express server including js, css html file containing .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template