Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onsubmit in reactjs

var OnSubmitTest = React.createClass({
    render: function() {
        doSomething = function(){
           alert('it works!');
        }

        return <form onSubmit={doSomething}>
        <button>Click me</button>
        </form>;
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onsubmit #reactjs
ADD COMMENT
Topic
Name
1+6 =