renderEach

fun <ITEM : Any, EL : Element> ElementCreator<EL>.renderEach(observableList: ObservableList<ITEM>, itemRenderer: ElementCreator<Element>.(ITEM) -> Unit)(source)

Similar to render, but renders a list of items, and updates the DOM when the list changes.

While render could be used for this with a KVal<List<String>>, this method is far more efficient because it only updates the DOM when the list changes, rather than re-rendering the entire list every time.