Which of these is the CORRECT statement for ‘ref’ in React?

Ref is added to the DOM element or an instance of a component to access it directly. It takes function as value which will receive the underlying DOM element or the mounted instance of the component as its first argument..
Ref is only available in React.js and not in React-Native.
Ref cannot be applied to the React Native’s core components.
Ref is a way to access DOM element or instance of a component. It can be assigned a javascript object which the element can access as well.
Verified Answer
Correct Option - a

To get all Infosys Certified React Native Developer Exam questions Join Group https://bit.ly/infy_premium_group

We're passionate about offering best placement materials and courses!! A one stop place for Placement Materials. We daily post Offcampus updates and Placement Materials.

Qtr No. 213, New Town Yehlanka Indore 454775

admin@prepflix.in