← React Intermediate Questions - Set 6 Q53

What is the role of `useCallback` in React?

React Intermediate Questions - Set 6

Example

const onSave = useCallback(() => save(draft), [draft]);

What to notice

← Back to the question list