JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <input type='text' value='inputOfTypeHead' id='inputOfTypeHead' />
  <br>
  <br>
  <input type='text' id='generalInput' />
</body>
</html>

JavaScript

const inputOfTypeHead = document.getElementById('inputOfTypeHead');
const generalInput = document.getElementById('generalInput');
generalInput.value = 'generalInput';

inputOfTypeHead.focus();

setTimeout(function(){
	generalInput.focus();
}, 2000);