how to use ref in functional component in react js code example Example: use ref in component reactjs class CustomTextInput extends React.Component { // ... }