DEV Community

Discussion on: How to use React Hooks - 2 most commonly used Hooks explained ✨

Collapse
 
sebalr profile image
Sebastian Larrieu • Edited

Empty array means only execute after mount. The value in the arrays is what react check for execution. Empty array means nothing to check

Thread Thread
 
djnadackal profile image
djnadackal

Hi Larrieu, I was referring to the scenario when we dont give a dependency array. 🙂