code snippet from authRoute.tsx
code snippet from authRoute.tsx

Nextjs is a React framework which enables developers to harness the power of React applications while generating static websites and server side rendered websites.

When building a website or application there might be parts of your website that you only want authenticated users to be able to access. For these parts of your application, you need to make sure that the user that is trying to access this page is actually authenticated.

In Nextjs, a route (page on your website) is created by simply creating a React component inside the pages folder. If for example you create a dashboard.tsx …

Tom Lamb

Full Stack Javascript developer, skateboarder, skier and tech enthusiast! Visit my website at

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store