The App routing is a new feature in NextJs version 13 onwards.
for creating routes using app routing
These are the steps.
- 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.
- In page.tsx you can use rafce command to generate new component and give the component the name as folder or route name.
Leave a Reply