how to set form inputs to empty after submitting data in react code example Example: how to empty form after submit react e.target.reset();