chapter
chapter copied to clipboard
New naming convection for Next.js page
Here is the original blog: https://nextjs.org/blog/layouts-rfc
And here is TD;LR
Layout components should be named layout.tsx, instead of our index.tsx
Page components should be named page.tsx instead of index.tsx
there is no need for _app.tsx and _documents.tsx
The rest of the post is talking about server, so we can talk about later
I have opened an issue, to know if we should be mindful of this.
There's likely to be a migration guide once this makes it into a stable release of Next. It doesn't sound like there's an awful lot we'll need to do, so we can just wait until it's necessary.
Closing this, because it is early to discuss it and I don't want people to start creating pull requests changing chapter files
Reopened, because next13 is stable, although the app/dir isn't, we don't need to use it until it's.