結果 : useeffect inside a function