Rerum facilis ut ani
Reprehenderit in ni
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/