In the following code, what is `handleClick`?
const handleClick = useCallback(() => { doSomething(id); }, [id]);
-
A
A new function created on every render
-
B
A memoized function that only changes when `id` changes
-
C
A function that runs immediately when `id` changes
-
D
An asynchronous function wrapped in useCallback