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
├──layouts-components
├──sidebar
├──sidemenu.tsx
export const MENUITEMS = [
{
title: "Crm", icon: icon1, badgetxt: "", type: "sub", active: false, selected: false, dirchange: false,
children: [
{ path: "/components/crm/crmdashboard", type: "link", active: false, selected: false, dirchange: false, title: "Dashboard", },
{ path: "/components/crm/projects", type: "link", active: false, selected: false, dirchange: false, title: "Projects" },
{ path: "/components/crm/projectdescription", type: "link", active: false, selected: false, dirchange: false, title: "Projects description" },
{ path: "/components/crm/clients", type: "link", active: false, selected: false, dirchange: false, title: "Clients" },
{ path: "/components/crm/reports", type: "link", active: false, selected: false, dirchange: false, title: "Reports" },
],
},
]