material ui textfield is focused or not code example Example: mui textfield focus <TextField inputRef={input => input && input.focus()} />