On submission of a form, I\'m trying to doSomething() instead of the default post behaviour.
doSomething()
Apparently in React, onSubmit is a supported event for for
In your doSomething() function, pass in the event e and use e.preventDefault().
e
e.preventDefault()
doSomething = function (e) { alert('it works!'); e.preventDefault(); }