What are some common pitfalls with useEffect?

  1. Forgetting to include dependencies, leading to stale data.
  2. Over-specifying dependencies, causing unnecessary re-renders.
  3. Omitting the cleanup function for effects that need teardown.