← React Intermediate Questions - Set 11 Q108

What is forwardRef in React?

React Intermediate Questions - Set 11

Example

const Input = forwardRef((props, ref) => <input ref={ref} {...props} />);

What to notice

← Back to the question list