Button child won't change style after clear child

If you’re asking whether there’s a better way to implement your functionality, I believe there definitely is. You don’t need to frequently create and remove components. There are many ways to achieve a function, and you should just implement it. If it turns out to be performance-intensive, you can consider refactoring it later.

1 Like