/* eslint-disable jsx-a11y/anchor-is-valid */ import React, { useEffect, useRef, useState } from "react"; import { Link } from "react-router-dom"; import logo from "../assets/images/logo/logo.svg"; import MobileMenu from "./MobileMenu"; const Header = () => { const [activeMobileMenu, setActiveMobileMenu] = useState(false); const scrollNav = useRef(null); useEffect(() => { // scrolling nav window.addEventListener("scroll", () => { let windowScroll = window.scrollY > 100; scrollNav.current.classList.toggle("rt-sticky-active", windowScroll); scrollNav.current.classList.toggle("sticky", windowScroll); }); }, []); return ( <> Home Home One Home Two Home Three Pages About 1 About 2 Instructor Instructor 2 Instructor Single Event Event Single 404 Courses Courses Courses Sidebar Single Course Blog Blog Standard Blog Single Contacts Start Free Trial setActiveMobileMenu(!activeMobileMenu)} > {activeMobileMenu && ( )} > ); }; export default Header;