ENGLISH·COURSE API
    Preparing search index...
    • The element the browser is presenting fullscreen, if any.

      Returns Element | null

      The presented element, or null when nothing is

      The browser paints only that element and its descendants, so anything fixed to the document — a notification, a dialog portalled to <body> — is invisible while a learner watches fullscreen. Surfaces that must reach them there render into this element instead; surfaces that would interrupt wait until it is null again.

      Browser-side only — do NOT call from a Server Component.

      const fullscreenElement = useFullscreenElement();
      return fullscreenElement ? createPortal(notice, fullscreenElement) : notice;