import React, { useState, useEffect, useRef } from 'react'; import Nav1 from '../Components/MainNav'; import Nav2 from '../Components/SubNav'; function Home() { return (