結果 : pass function as parameter in react js