reactjs – React Router vs NextJS Routing

I haven’t seen the difference between React Router vs. NextJS Routing explained clearly. NextJS describes its main “features” as being Routing and Rendering among others, but it wasn’t clear to me that they all relate to SSR in some form.

I think I’m right in saying that NextJS Routing is file-system based, but more importantly it’s based on routing to different pages that have been rendered on the server and hydrated on the client. Whereas React Router is what powers SPAs (ie single HTML page rendered in the browser and navigation is “faked” because it’s just one page updating)? Though I think it might be possible for NextJS to do that too. Can someone confirm?

Read more here: Source link