Next JS automatically routes every file in the pages/ directory to a name associated with the file name. For single pages, you can just create a single file that will export a React component. There is no right or wrong way to structure a Next JS project, and this is highly opinionated.
2 Comments
Sort: