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