結果 : useeffect in a function react