FrontendDeveloper.in

React question detail

Is ref argument available for all functions or class components?

Regular function or class components don’t receive the ref argument, and ref is not available in props either. The second ref argument only exists when you define a component with React.forwardRef call.

Back to all React questions
Get LinkedIn Premium at Rs 399