React · Middle · Question 57 of 75

How does forwardRef relate to React 19?

Explanation

Declare function Input({ ref, ...props }) and pass it to the DOM element. forwardRef still works and will be deprecated over time.

Further reading

Problem with a question

React · Middle · question 57

Test yourself

Take the React · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz