Which dependency array would ensure a callback updates when count changes?
const handleClick = useCallback(() => { console.log(count); }, [/* ??? */]);
[handleClick]
[]
[count]
This content is only available to registered users.Please register at the the home page.