Skip to main content

MFE Interface

Every MFE exports a single render() function. The return value unmounts and cleans up. Any framework is supported — the contract is framework-agnostic.

export function render(container: HTMLElement, props: Record<string, unknown>): () => void