Practice Test Geeks home

React Hooks useCallback Hook 2

In the following code, what is `handleClick`?
const handleClick = useCallback(() => { doSomething(id); }, [id]);

Select your answer