DeepFrontend
Learning Paths
Practice
System Design & DS
Design Studio
Data Structures Curriculum
Real-World Case Studies
Careers
Job Board
Resume Builder
Blog
Sign in
Search
⌘K
Go Pro
Loading compiler resources...
TypeScript Quiz Practice
Active Recall Drill Session
← Exit Session
Question 1 of 1
medium
TypeScript
As of React 19, confirmed by compiling a working example, how can a function component accept a ref?
A
forwardRef is the only way, unchanged from earlier React versions
B
ref can be declared as a regular prop on the component's props interface, with no forwardRef wrapper required
C
Refs are no longer supported in React 19
D
Only class components can accept refs
Check Answer