controlled form and handlesubmit in react code example Example: react file input <input type="file" />