rsnext/examples/using-router
2020-12-28 15:26:38 +00:00
..
components Update Examples for Fast Refresh (#13068) 2020-05-18 17:44:18 -04:00
pages fix example using-router import wrong pathname (#20536) 2020-12-28 15:26:38 +00:00
.gitignore Added .gitignore to examples that are deployed to vercel (#15127) 2020-07-16 10:52:23 -04:00
package.json Ensure all examples are MIT licensed (#16691) 2020-08-29 22:32:35 -04:00
README.md Simplify example usage instructions (#16678) 2020-08-29 22:22:02 -04:00

Example app utilizing next/router for routing

This example features:

  • An app linking pages using next/router instead of <Link> component.
  • Access the pathname using next/router and render it in a component

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

How to use

Execute create-next-app with npm or Yarn to bootstrap the example:

npx create-next-app --example using-router using-router-app
# or
yarn create next-app --example using-router using-router-app

Deploy it to the cloud with Vercel (Documentation).