Following are the fundamental building blocks to creating a route.
import React, { Fragment } from "react";
import Link from 'next/link';
import { useRouter } from "next/router";
<ul>
<li>
<Link href="/">Home
</Link>
</li>
<li>
<Link href="/about">About Us
</Link>
</li>
<li>
<Link href="/blog/hello-world">Blog Post
</Link>
</li>
</ul>
Following are the fundamental building blocks to creating a new link.
├── shared
├──layout-components
├──sidebar
nav.js
export const MENUITEMS = [
{
menutitle: "MAIN",
},
{
icon: DashboardIcon,
badgetxt: ,
title: "Dashboards",
type: "sub",
active: false,
children: [
{
path: "/components/dashboards/sales",
type: "link",
active: false,
selected: false,
dirchange: false,
title: "Sales",
},
{
path: "/components/dashboards/analytics",
type: "link",
active: false,
selected: false,
dirchange: false,
title: "Analytics",
},
{
path: "/components/dashboards/ecommere",
type: "link",
active: false,
selected: false,
dirchange: false,
title: "Ecommerce",
},
]
}
]