UseIslandResult
Defined in: react/src/useIsland.ts:189
Properties
Section titled “Properties”frame:
IslandFrame
Defined in: react/src/useIsland.ts:198
The island’s slot, for a frame that renders it (Hero, Cta).
ref: (
element) =>void
Defined in: react/src/useIsland.ts:196
Attach to the island’s element. It tells the hold when the island is in view, and the impression when it has been seen. Without it the island is treated as in view from mount, and no impression records.
Parameters
Section titled “Parameters”element
Section titled “element”HTMLElement | null
Returns
Section titled “Returns”void
state:
CreativeState
Defined in: react/src/useIsland.ts:190