Remove the elementsIndex. It was prone to leaving us with an incorrect understanding of the current state of the DOM. For example, if a parent view has many child views, and the parent view is deleted, we would still have the child views in the index even though they were no longer in the DOM. Instead, humble now relies on the DOM as the ultimate source of truth regarding state, opting to always use QuerySelector to get an existing element from the DOM / see if it exists. I expect this will not be a problem from a performance standpoint. The browser may even cache hot query selectors for us.
Remove the elementsIndex.
It was prone to leaving us with an incorrect understanding of the current
state of the DOM. For example, if a parent view has many child views, and
the parent view is deleted, we would still have the child views in the index
even though they were no longer in the DOM. Instead, humble now relies on the
DOM as the ultimate source of truth regarding state, opting to always use
QuerySelector to get an existing element from the DOM / see if it exists.
I expect this will not be a problem from a performance standpoint. The browser
may even cache hot query selectors for us.

go-humble/view,go-humble/view,go-humble/view