butterfloat


butterfloat / run

Function: run()

run(container, component, options?, placeholder?, document?): Subscription

Defined in: runtime.ts:16

Run a Butterfloat component

Parameters

container

Element

Container the component will be a child in

component

Component or description of component to run

ComponentDescription | Component

options?

RuntimeOptions

placeholder?

Optional placeholder child of the container to replace

Element | CharacterData

document?

Document = globalThis.document

Document to use for creating new nodes

Returns

Subscription

Subscription