I have four buttons at the bottom of my form. Clicking on any of these buttons results into a container preparation. In this container I've five components(includes buttons) and this container can be in three states(changes on button click which is inside the container).
By three states I mean every time I press a button which is added to this container as a component I need to replace a few/ add one or two components and then display the container again.
Now, here I'm confused whether should I go for the replacement of the components which are there inside the container or should I create a new container on every button click and swap the whole container itself.
PS:more concerned about the performance.
regards.