How to Stop Background Scroll When a Modal Opens in React

Lock page scroll behind dialogs in React and Next.js with a small hook, CSS class toggle, and iOS-safe body fixes.