結果 : can i use useeffect inside a function