TagFactory

typealias TagFactory<C> = (RenderContext, String?, String?, ScopeContext.() -> Unit, C.() -> Unit) -> C

Alias in order to reduce boilerplate code for the awkward signature of a Tag-factory of RenderContext.

In order to provide some instance, just refer to one of the existing factories in RenderContext:

val div: TagFactory<HTMLDivElement> = RenderContext::div