Skip to main content

React UI Ownership Ladder

Choose how much React UI your application should own. Start with the supplied room and move down only when the product experience requires more control.

This guide applies to mediasfu-reactjs@4.2.9.

LevelKeep from MediaSFUYour application ownsChoose it when
PrebuiltThe visible room and runtimeNavigation and product context around the roomYou need a reliable room quickly
OverridesThe room workflow and most UISelected cards, controls, menus, or modalsThe product is still room-shaped
Custom componentRoom runtime and parametersThe primary workspaceYour layout differs substantially
HeadlessRuntime and available state/action handoffEvery visible surface and user-facing stateThe product is a console or another app-owned shell
  1. Prove secure create, join, media, leave, and host end with the React room lifecycle guide.
  2. Use UI overrides for the first visual changes.
  3. Use custom component replacement when the main workspace must change.
  4. Use headless mode when your application must own the entire visible shell.

What changes as ownership grows

When your application replaces a supplied surface, it also becomes responsible for that surface's accessibility, loading state, denied state, confirmation, recovery, and cleanup. A button that calls a helper is only the beginning of the user experience.

For participant and collaboration controls, keep current room state as the source of truth and apply your app permission policy before exposing actions.

Release checklist

  • Verify the baseline room before replacing UI.
  • Test the exact roles, browsers, and devices your product supports.
  • Preserve confirmation and cleanup for participant leave and host end.
  • Do not place long-lived MediaSFU credentials in React code or browser storage.
  • Confirm every custom control has an observable success state and a useful failure path.

See Choose your UI mode for the React component patterns behind each level.