is appended to the DOM</td>
</tr>
<tr>
<td><code>onupdate(vnode)</code></td>
<td>Runs every time a redraw occurs while the DOM element is attached to the document</td>
</tr>
<tr>
<td><code>onbeforeremove(vnode)</code></td>
<td>Runs before a DOM element is removed from the document. If a Promise is returned, Mithril only detaches the DOM element after the promise completes. This method is only triggered on the element that is detached from its parent DOM element, but not on its child elements.</td>
</tr>
<tr