From the course: Master Next.js by Building Scalable Apps with Routing, Databases, and Performance

RQ: Pages Router vs. App Router

Let's discuss few questions about routers. So what are routers and why are they used? Routers are the utilities or in case of Next.js, it is a built in feature that allows you to implement routing and allows you to create single page applications with ease. What are the types of routers in Next.js? So there are two types of routers currently, Pages Router and the App Router. And the last question, which router is more preferable to use and why? So the App Router is the one to use as it was launched after version 13 with many improvements over Pages Router and Next.js itself recommends using App Router.

Contents