code: function destroyVnode(vnode) {
    if (!vnode) return
  
    const data = vnode.data
  
    if (!data) return
  
    if (data.hook && data.hook.destroy) data.hook.destroy(vnode)
    if (vnode.children) vnode.children.forEach(destroyVnode)
  }
docs: Destroy our vnode recursively Note: Can't invoke modules' destroy hook as they're hidden in snabbdom's closure. The default modules don't do anything in destroy() anyway.