Learning to create and maintain states

I am experimenting and learning how to create and maintain different
states for the different components so they will be able to dynamically
change.