React how to make a form not submit code example Example: how to empty form after submit react e.target.reset();