refs inside react code example Example: use ref in component reactjs class CustomTextInput extends React.Component { // ... }