@react-hook/passive-layout-effect
A React hook that uses useEffect() on the server and useLayoutEffect() in the browser
A React hook that uses useEffect() on the server and useLayoutEffect() in the browser
A React hook that schedules a `React.useLayoutEffect` with a fallback to a `React.useEffect` for environments where layout effects should not be used (such as server-side rendering).