quisi.do
1 min readDec 28, 2018

--

<Button onClick={this.getClickHandler(listItem.text)} />

While getClickHandler is a function, it returns a function. You aren’t passing getClickHandler itself as a prop to Button. You are passing the function that getClickHandler returns.

--

--

quisi.do
quisi.do

No responses yet