Electric v3 today must own the construction of the root element for our dom position tracking algorithm to work properly. If not, e.g. we mount to document.body directly, any children elements maintained by electric-dom will have undefined order (commonly reversed).
workaround for now: don't forget a root wrapper div.