B THE NEXT.JS APP DIRECTORY
In version 13, Next.js introduced a new routing paradigm that uses an app directory instead of the pages directory. This appendix discusses this new feature so that you can explore it further on your own. As there are no plans to deprecate the pages directory, you can continue using the routing approach you learned in Chapter 5. You can even use both directories simultaneously; just be careful not to add to both directories folders and files that would create the same route, as this could cause errors.
Both the app and pages directories use folders and files to create routes. However, the app directory distinguishes ...
Get The Complete Developer now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.