#nextjs

2 messages · Page 1 of 1 (latest)

ruby saddle
#

hello everyone, i need to make a project in next , which was initially made in react its role baser as well where we have 4 roles, now i am really confused how to revamp that project in next, if someone can help me as i am new to next and find it difficult to implement layout and routing in nextjs, if somone can share the githup repo of the project where i can take guidance for the boiler plate
the previous project was made on mern now want to convert it into next

next canyon
#

If you are using the app dir, routing in Next.js is really simple. All you need to do is create a folder in your app dir and inside that folder create a file called page.jsx (or.tsx if using TypeScript). For example in app dir create a folder called dashboard and inside that dashboard folder create a file called page.jsx. You will then be able to go to that page using the dashboard pathname (/dashboard) 'localhost:3000/dashboard'