Skip to content

remix/component · Type

View Source

LoadModule

Summary

Loads a named client-entry export for hydration.

Module specifiers from trusted document metadata are passed through unchanged. The loader controls resolution, including import maps, CDN URLs, and development server URLs.

Signature

type LoadModule = (moduleUrl: string, exportName: string) => Promise<Function> | Function