Question · JavaScript and React course · Module 10: React Ecosystem and Future
ref as a Prop in React 19
How do you pass a ref to a functional component in React 19?
Answer options
- As a regular prop - ref is now treated like any other prop
- Using a special useForwardRef hook
- Through Context API
- Only using forwardRef
You can check the correct answer by solving this task in the CodeWorlds game.