Neat proof of concept. I think what you'd want to do is have some form of dom vs component diffing, and traverse the old dom and only create new elements if you find a node type mismatch.
Consider this, you have a slider input, and oninput, you update the state, which creates a new slider input, which causes your mouse drag to get invalidated.
Another consideration - a textarea where you update state each keystroke; will that reset the cursor or have unintended consequences?