React DOM integration

preinitModule

Fetch and initiate execution of an approved ES module.

Formal Syntax & Structure

react syntaxreact
preinitModule("/assets/gallery.mjs")

Working Example

Example Snippetreact
preinitModule("/assets/gallery.mjs")
React Reference