4 ms·
You have to use it, obviously, but it should be used for side effects primarily. A good indicator is if all the values in your dependency array are react props/
by schwartzworld 4y ago
You have to use it, obviously, but it should be used for side effects primarily. A good indicator is if all the values in your dependency array are react props/state, you're doing it wrong.