Replace onClick={this.toggle}-> onClick={this.toggle.bind(this, i)}. The same behavior is exhibited with the native