addState
Maps a component key to a component object that retains the current state values for that key.
Parameters
key
the key of component
state
the state value that needs to be retained
Maps a component key to a component object that retains the current state values for that key.
the key of component
the state value that needs to be retained