結果 : can i use useeffect in a function