I have a state variable which holds components created dynamically, however, when I access the state from a function passed to the child as props, I get the state status fro