It’s actually exactly the type of problem declarative UI libraries like react were supposed to prevent, yet here we are 8 years later.