I went through the life cycle methods of the react components. I read about the method
getDerivedStateFromProps which is to be used to update the props of the child method whenever the parent method updates it's state. (as far as I read, please correct if I am wrong). I made a component
Login which calls another component called
Form, I am passing the handler methods (of inputs) as objects to the child form and handling the change. whenever my inputs are updated, I am only changing the state of the parent component
Login and the props in the component
Form are getting updated automatically. I am not using any life cycle method to update or check the change in state of the parent component. Then how are the props in the child component getting updated ??