Skip to content
masterclass Buddy

React 19+ · Function

preinitModule

preinitModule tells the browser to fetch and evaluate an ESM module early. Use it when the module will soon be needed and immediate evaluation is acceptable.

Last updated

Syntax

preinitModule(href, options)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • preinit
  • preloadModule
  • preload
  • react-dom

Source: preinitModule – React API Reference. Checked 2026-11-03.