ReactJS: Warning: setState(…): Cannot update during an existing state transition
Looks like you’re accidentally calling the handleButtonChange method in your render method, you probably want to do onClick={() => this.handleButtonChange(false)} instead. If you don’t want to create a lambda in the onClick handler, I think you’ll need to have two bound methods, one for each parameter. In the constructor: this.handleButtonChangeRetour = this.handleButtonChange.bind(this, true); this.handleButtonChangeSingle = … Read more