結果 : why do we use array dependency in the useeffect hooks in react