docs / html/rebuild

html/rebuild

Functions

rebuild

fn(state: { view: View<'msg>, node: DOMNode, children: ChildState<'msg>, parent: DOMNode }, new_view: View<'msg>, events: List<Str>) -> ({ view: View<'msg>, node: DOMNode, children: ChildState<'msg>, parent: DOMNode }, List<Str>) / { Dom<'t2552> }

Given the previous ViewState, a new View, and current events map, perform DOM mutations directly and return updated state + events.