Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
What the dependency array of useCallback should be in the code below?
we should remove the dependency array at all
it should be like this: [addValue]
it should be left empty as it is
it should be like this: [addValue, setCount]
it should be like this: [setCount]
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!