Quiz
Take a quiz on building polymorphic components with ref support.
1
What is the difference between React.ComponentPropsWithRef
and React.ComponentPropsWithoutRef
?
A)
There is a significant performance issue with React.ComponentWithRef
.
B)
React.ComponentPropsWithRef
accepts a generic while React.ComponentPropsWithoutRef
doesn’t.
C)
React.ComponentPropsWithRef
includes component props with ref
support, unlike React.ComponentPropsWithoutRef
.
D)
React.ComponentPropsWithRef
does not extend a component prop while React.ComponentPropsWithoutRef
does.
Question 1 of 50 attempted
Get hands-on with 1400+ tech skills courses.