I am new in Next Js. Whenever I click on the link it updates the URL but the page is not showing any data. But in Elements data is present.
here is the code of nav file:
<li className="nav-item active">
<Link href="/">
<a className="nav-link">
Home <span className="sr-only">(current)</span>
</a>
</Link>
</li>
<li className="nav-item">
<Link href="/about">
<a className="nav-link">About</a>
</Link>
</li>
<li className="nav-item">
<Link href="/blog">
<a className="nav-link">Blog</a>
</Link>
</li>
<li className="nav-item">
<Link href="/services">
<a className="nav-link">Services</a>
</Link>
</li>
Blog.js file:
import React from "react";
const Blog = () => {
return <h1>Blog</h1>;
};
export default Blog;
Here is my folder structure: