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
I'd also suggest moving the event handler outside render.
var OnSubmitTest = React.createClass({ submit: function(e){ e.preventDefault(); alert('it works!'); } render: function() { return ( Click me ); } });