How come this happens ? I want to update the child component when the state of my parent component changes. But nothing is happening as expected. Can someone please help.