title: React Hook useEffect has a missing dependency for empty array dependency
body: <p>I am getting missing dependency warning.</p>
  <p><em><code>React Hook useEffect has a missing dependency: 'fetchFeatured'. Either include it or remove the dependency array</code></em></p>
  <p><strong>My Code</strong></p>
  <pre><code>useEffect(() =&gt; {
          const fetchFeatured = () =&gt; {
              onSnapshot(faeturedCollectionRef, (snapshot) =&gt;
                  setFeatured(snapshot.docs.map((doc) =&gt; ({ ...doc.data(), id: doc.id })))
              )
          }
          fetchFeatured();
      }, [])
  </code></pre>
  <p>I have used empty array for avoiding loop.</p>