I am working on a client page in reactjs with socket.io and express. i have a basic file called login.jsx and trying to display the web code that is at the end of the file in a return block. but it is displaying the raw code.
I am using the sendFile function under express for this as shown here.
app.get('/', (req, res) => {
res.sendFile('Login.jsx', { root: "../frontend/src/pages" });
});
Thanks