title: How to increment counter value for each dropdown selection
body: <p>I am trying to increment the <strong>react state counter</strong> based on some option selection from the dropdown menu. The problem is I want to <strong>preserve</strong> the counter value and continuously increment based on condition like option <code>"Test"</code> is selected.</p>
  
  <p>I am using below code to increment a counter if <code>"Test"</code> is selected in both the dropdown</p>
  
  <pre><code>{this.state.DownloadPrepare == "Test" ? this.state.Identify == "Test" : this.state.CalcNoOfObs+1}
  </code></pre>