Keep them separate.
Supposed you have a folder called the server create a folder inside the server folder name the folder (client). The client folder should be your frontend while your server files should be in the root of the server folder
Comment by sadiq mustapha aji on "How do you recommend to isolate frontend from backend in MERN stack" | Hashnode