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: 'DASHBOARD',
Items: [
{
path: `/dashboard`,
icon: 'ti-home',
type: 'link',
active: false,
selected: false,
title: 'Dashboard'
},
{
title: 'CryptoCurrencies',
icon: 'ti-wallet',
type: 'sub',
active: false,
selected: false,
children: [
{
path: `/crytocurrencies/dashboard`,
type: 'link',
active: false,
selected: false,
title: 'Dashboard'
},
{
path: `/crytocurrencies/market`,
type: 'link',
active: false,
selected: false,
title: 'Marketcap'
},
{
path: `/crytocurrencies/currencyechange`,
type: 'link',
active: false,
selected: false,
title: 'Currency exchange'
},
]
},
]
}
]