renderIs

open fun <W : Any> Flow<*>.renderIs(klass: KClass<W>, into: Tag<HTMLElement>? = null, content: Tag<*>.(W) -> Unit)

Renders the data of a Flow of type W.

Receiver

Flow containing the data

Parameters

klass

reference to the type we want to check

into

target to mount content to. If not set a child div is added to the Tag this method is called on

content

RenderContext for rendering the data to the DOM