Node.js server overwritten entire DOM with React.JS
问题 What I am trying to do: I am trying to practice MERN structure, so I wanted to set up a node.js server and react front-end first. However, what happened is that when the server gets fired, the entire DOM got overwrite, why is that? server.js is a simple node.js const express = require('express'); const app = express(); // console.log that your server is up and running app.listen(3000, () => console.log(`Listening on port 3000`)); // create a GET route app.get('/test', (req, res) => { res.send