Define a ref in react
Use a ref on an uncontrolled input component
Managing focus, text selection, or media playback
Triggering imperative animations
Integrating with third-party DOM libraries
<form onSubmit={(e) => {
e.preventDefault();
// access to the form value:
console.log(this.inputText.value);
}}>
<input
type="text"
ref={(input) => this.inputText = input}
/>
</form>