Sat, Jun 13, 2026 Watch Live

Rerum facilis ut ani

Reprehenderit in ni

Admin

1 year ago

Voting Line

useEffect takes two arguments:

  • 1st argument to useEffect is function that contains side effect code.
  • 2nd argument is an array of dependencies. The effect runs only when one of these dependencies changes. If array is empty then effect runs only once when component mounts.
Most Read
https://samaa.tv/