rsnext/examples/using-router
2022-07-26 20:08:40 -05: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 Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
package.json Remove licence from all example/package.json that has them (#28007) 2021-08-14 10:48:39 -05:00
README.md Update pnpm create next-app for latest pnpm 6 and 7 (#37254) 2022-05-27 21:21:40 +00: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 or preview live with StackBlitz

Deploy with Vercel

How to use

Execute create-next-app with npm, Yarn, or pnpm 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
# or
pnpm create next-app --example using-router using-router-app

Deploy it to the cloud with Vercel (Documentation).