query in next js 13 app directory
in next js 12 if we have a dynamic route and we want get the query we do for example this :
getServerSideprops (context){
const { id } = context.query;
}
, so how can we get the same result with the new server side rendering functions ?
1 Reply
Routing: Defining Routes | Next.js
Learn how to create routes in your Next.js application.