Ted Chen·Follow1 min read·Sep 11, 2018--1ListenShareI think in this case a function that returns a function would be a bit cleaner?createAlertBox = (message) => () => { alert(message); };And you could call it as such<Button onClick={this.createAlertBox(listItem.text)} />