You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.
All the existing pages were created before introducing Next.js. To take advantage of the outstanding capabilities of Next.js we should detach the existing pages from react-router-dom and move them under the pages directory, which is where Next.js triggers the routing.
The old router is configured in this file and every route must be moved under pages.
Please refer to this Next.js guide for more info on the pages functionality.
N.B. When moving pages one thing to look out for is how path params are injected into the components: the hooks used by Next.js are different from the one used by react-router-dom.
The text was updated successfully, but these errors were encountered:
Description
All the existing pages were created before introducing Next.js. To take advantage of the outstanding capabilities of Next.js we should detach the existing pages from
react-router-dom
and move them under thepages
directory, which is where Next.js triggers the routing.The old router is configured in this file and every route must be moved under
pages
.Please refer to this Next.js guide for more info on the
pages
functionality.N.B. When moving pages one thing to look out for is how
path params
are injected into the components: the hooks used by Next.js are different from the one used byreact-router-dom
.The text was updated successfully, but these errors were encountered: