← React Intermediate Questions - Set 5 Q47

What is the `useImperativeHandle` hook in React?

React Intermediate Questions - Set 5

Example

useImperativeHandle(ref, () => ({ focus: () => input.current.focus() }), []);

What to notice

← Back to the question list