Trigger state change using componentDidMount/Update instead of setState callback