In a real application, you&#x27;ll need to deal with moving elements, document shape will be changing, etc. Trying to solve this cases is the most complicated part of vdom libraries. If you try to do naive replace&#x2F;update, it will be significantly slower.