Question · JavaScript and React course · Module 10: React Ecosystem and Future

forwardRef Status in React 19

What is the status of forwardRef in React 19?

Answer options

  • It has been replaced by useRef
  • It has been completely removed
  • It only works with class components
  • It still works but is no longer needed in React 19 - React plans to deprecate it in a future release

You can check the correct answer by solving this task in the CodeWorlds game.