Input value not Updating after setState change… Increment and Decrement
问题 I have these increment and decrement buttons that will add or subtract. I will import the default values from props and then want to allow the user to make adjustments. So when I update the state (series) for the appropriate group it appears to update just fine... but the input value remains '14' in the HTML although I have it set to value={this.state[mppt_number].series} . Shouldn't it automatically update when the state changes? It probably has to do with the [mppt_number] variable.... if