AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

use-mobile-navigation.ts 285B

12345678910
  1. import { useCallback } from 'react';
  2. export type CleanupFn = () => void;
  3. export function useMobileNavigation(): CleanupFn {
  4. return useCallback(() => {
  5. // Remove pointer-events style from body...
  6. document.body.style.removeProperty('pointer-events');
  7. }, []);
  8. }