title: How to pass in a second argument on ReactJS onSubmit function call
body: <p>Here are the codes</p>
  
  <pre><code>import React from "react";
  
  var newForm = React.createClass({
      handleSubmit: function (e, text) {
          e.preventDefault();
          console.log(text);
      },
      render: function () {
          return (
              &lt;form onSubmit={this.handleSubmit("react!!!")}&gt;
                  &lt;input type="text"/&gt;
              &lt;/form&gt;
          );
      }
  )};
  
  module.exports = newForm;
  </code></pre>
  
  <p>What I want to achieve with this is that when I submit the form, I want the string "react!!!" to be printed out in the console and prevent the default event from taking place at the same time.</p>
  
  <p>Obviously, passing in the argument to "handleSubmit" function breaks the code.</p>
  
  <p>Is there anyway to pass in an argument from onSubmit event to the functions attached to this event?</p>