React get child state. Create a method to change the state in the child component.