In the example below, we take the input reference using the ?ref' attribute. After that, we used the componentDidMount() method in the class component, and in the method, we accessed the input and used the focus
Code ExampleType Copy CodeSandbox TS import React from 'react'; import { useForm, NestedValue } from 'react-hook-form'; import { Autocomplete, TextField, Select } from '@material-ui/core'; import { Autocomplete } from '@material-ui/lab'; type Option = { label: string; value: string;...