addStateContainer

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