title: Change state using componentDidUpdate()
body: <p>Hi i'm trying to change a state using componentDidUpdate() but I get an infinite loop.</p>
  <pre><code>componentDidUpdate(prevState) {
      if (prevState.selectedOption1 !== this.state.selectedOption1) {
          this.setState({ disabled2: false });
      }
  }
  </code></pre>
  <p>I can´t figure it out</p>