appendChild
function appendChild(parent, child): Effect<undefined, never, Runner>;
Function: appendChild()
function appendChild(parent, child): Effect<undefined, never, Runner>;Defined in: packages/motion/src/Scene.ts:760
Move child under parent, detaching it from its current parent first
(so it is never double-referenced). Instances are born mounted under the
ambient parent; appendChild is the explicit reparent — the door to
placing a lazily-created node into an existing group.
Parameters
| Parameter | Type |
|---|---|
parent | GroupInstance |
child | Instance |
Returns
Effect<undefined, never, Runner>