NextJs App Routing

The App routing is a new feature in NextJs version 13 onwards.
for creating routes using app routing
These are the steps.

  1. create a new folder inside app folder and give it a name you want the route name and inside this folder you create the component named page.tsx or page.jsx depending upon you are using typescript.
  2. In page.tsx you can use rafce command to generate new component and give the component the name as folder or route name.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *