HI,
I'm Matheus
Vidigal
Web Developer
Web Developer
SSR and SSG, image optimization, code splitting, SEO, performance and processing.
export const Header = () => {
const headerLinks = useHeaderLinks
const [scrolled, setScrolled] = useState(false)
const [currentPath, setCurrentPath] = useState('')
const handleScroll = () => window.scrollY > 0
? setScrolled(true) : setScrolled(false)
useEffect(() => {
setCurrentPath(Router.pathname)
return () => setCurrentPath(Router.pathname)
}, [currentPath])
return <>...</>
}