renderElement

fun <V> Flow<V>.renderElement(preserveOrder: Boolean = true, content: RenderContext.(V) -> RenderContext)

Renders the data of a Flow as Tags to the DOM. content should only contain one root Tag otherwise a MultipleRootElementsException will be thrown.

Parameters

<receiver>

Flow containing the data

preserveOrder

use a placeholder to keep the rendered Tags in order with static Tags at the same level (default true)

content

RenderContext for rendering the data to the DOM