Your modal is open, centered, perfect. Then someone flicks the overlay and the page behind it scrolls away underneath. Everyone's first fix is the same three lines: useEffect(() => { document.body.s
Collection of 110+ essential React Hooks. Tree-shakable, SSR-safe, TypeScript-first.
Maintainer of @reactuses/core — 110+ essential React Hooks: SSR-safe, TypeScript-first, tree-shakeable. Docs & interactive demos: https://reactuse.com · MIT-licensed and maintained in spare time — sponsorships keep it going: https://github.com/sponsors/childrentime
Markdown supported · ⌘↵ to post
No responses yet.