結果 : using useeffect to fetch data from api