how to empty form after submit react

JavaScript
e.target.reset();
Source

Also in JavaScript: