Having an issue with my React Nav bar. When a user clicks on it, it's supposed to scroll to a specific part of the page. However, there's a noticeable delay of about 1.5 seconds before the action takes place. Any suggestions on how to resolve this?
Here is the code for Navbar.js:
import React from "react";
import { Link } from 'react-scroll';
import { FaBars, FaTimes } from 'react-icons/fa';
import { useState, useEffect } from "react";
import '../styles/Navbar.css';
// More code here...
export default Navbar;
Also, here is the snippet from Navbar.css:
.header {
// CSS styles here
}
// More CSS styles here...