Додати до Chrome
Is the component below defined correctly?
Please, select the correct statements regarding fixes/improvements that can be done with the component.
someProp should be placed in the dependency array
doSomething should be placed in the dependency array
everything is good
it is better to place the doSomething function inside of the effect
it is better to remove the second argument of the effect
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]