Next.js Discord

Discord Forum

React and Next.js + Node.js? Monorepo project?

Unanswered
Pomeranian posted this in #help-forum
Open in Discord
PomeranianOP
we use npm concurrently module to run both frontend and backend with one npm instruction as 'npm run dev'.
it's for react/node.js application.
wanna make sure we can do the same in the case of next.js/node.js project.
also wanna know the difference between react.js and next.js project which are combined with node.js.

4 Replies

Xoloitzcuintli
Hi, @Havana
React.js is for only frontend. and Next.js is server side rendering.
@Pomeranian we use npm concurrently module to run both frontend and backend with one npm instruction as 'npm run dev'. it's for react/node.js application. wanna make sure we can do the same in the case of next.js/node.js project. also wanna know the difference between react.js and next.js project which are combined with node.js.
Adding another Node.js layer for endpoints usually only introduces redundancy, latency, and unnecessary complexity. With React 19 and Next.js using the App Directory, you not only get SSR (which already existed in the Pages Directory) but also reactive data mutations, granular caching (Next 16), and UI streaming for dynamic components.
Yellow-billed Magpie
I mean yeah you can definitely have a monorepo that runs both your frontend and backend code with turbo repo
https://turborepo.dev/