DEV Community

Niko Montana
Niko Montana

Posted on

1 1

useScrollInfo() Hook

Hi,

I am searching for a simple solution to detect the scroll direction (and scroll position) within a react functional component. The difficult part for my case is that I am using nextjs so my react app is a ssr app. I dont have access to window or document.

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more