SyntaxFix
Write A Post
Hire A Developer
Questions
<form onSubmit={(e) => {this.doSomething(); e.preventDefault();}}></form>
it work fine for me