← React Intermediate Questions - Set 2 Q13

What is the `useCallback` hook in React?

React Intermediate Questions - Set 2

Example

const onSubmit = useCallback((e) => { e.preventDefault(); save(form); }, [form]);

What to notice

← Back to the question list