🚆 Routing

Manage dynamic routing and links in Next.js

What is the syntax for creating a dynamic route?

Routes

Create the following routes.

  • /enter
  • /[username]
  • /[username]/[slug]
  • /admin
  • /admin/[slug]

VS Code Component Snippet

Add your own VS Code snippets

file_type_config user-snippets.json
{

	"component": {
		"scope": "javascript,typescript",
		"prefix": "next-page",
		"body": [
			"export default function Page({ }) {",
			"  return (",
			"    <main>",
			"    </main>",
			"  )",  
			"}",
		],
		"description": "React component"
	}
}

Questions? Let's chat

Open Discord