function removeNativeElement () {
    clearFrame()
    removeElement(rootId, '0', currentNativeElement)
    currentNativeElement = null
  }
Remove the root element. If this is called synchronously we need to
cancel any pending future updates.