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.js
export const MENUITEMS = [
{
menutitle: "MAIN",
},
{
title: "Dashboards", icon: icon1, badgetxt: badge1, type: "sub", active: false, selected: false, dirchange: false,
children: [
{ path: "/components/dashboards/sales", type: "link", active: false, selected: false, dirchange: false, title: "Sales", },
{ path: "/components/dashboards/crypto", type: "link", active: false, selected: false, dirchange: false, title: "Crypto" },
{ path: "/components/dashboards/jobs", type: "link", active: false, selected: false, dirchange: false, title: "Jobs" },
{ path: "/components/dashboards/crm", type: "link", active: false, selected: false, dirchange: false, title: "CRM" },
{ path: "/components/dashboards/ecommerce", type: "link", active: false, selected: false, dirchange: false, title: "Ecommerce" },
{ path: "/components/dashboards/analytics", type: "link", active: false, selected: false, dirchange: false, title: "Analytics" },
{ path: "/components/dashboards/projects", type: "link", active: false, selected: false, dirchange: false, title: "Projects" },
{ path: "/components/dashboards/nft", type: "link", active: false, selected: false, dirchange: false, title: "NFT" },
{ path: "/components/dashboards/hrm", type: "link", active: false, selected: false, dirchange: false, title: "HRM" },
{ path: "/components/dashboards/personal", type: "link", active: false, selected: false, dirchange: false, title: "Personal" },
{ path: "/components/dashboards/stocks", type: "link", active: false, selected: false, dirchange: false, title: "Stocks" },
{ path: "/components/dashboards/courses", type: "link", active: false, selected: false, dirchange: false, title: "Course" },
],
},
]