How do useEffect, the dependency array, and the cleanup function work in React? · ORA·tech