useEffect ले side effects चलाउँछ — React को rendering को बाहिर गएको काम, जस्तै डेटा fetching, subscriptions, timers, वा manual DOM updates। यो component render भएपछि पछाडि चल्छ, side effects लाई render body को बाहिर राखेर (render शुद्ध रहनु पर्छ)।
dependency array ले timing नियन्त्रण गर्छ
useEffect(() => {
document.title = `Count: ${count}`;
}, [count]);
