結果 : reactjs wait for function to complete