how to clear field using set state code example Example: how to empty form after submit react e.target.reset();