JSFiddle - React, Tailwind, and code Playground

HTML

<input type="file" name="my-image" id="image" accept="image/gif, image/jpeg, image/png" />