JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Input type file</title>
</head>
<body>
<form action="">
<input type="file" required>
<input type="submit">
</form>
</body>
</html>