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.
SubscribeRelated
preinitpreloadModulepreloadreact-dom