title: How to access reactjs component state in jquery callback function
body: <p>how to access react component state from jQuery "changeDate" event (of jqueryUI date) callback function.</p>
  
  <pre><code>var subheader = React.createClass({
  
      getInitialState: function () {
          return {
              msg: this.props.msg
          };
      },
  
      componentDidMount: function () {
          $('#date').datepicker({
              format: "dd/mm/yyyy"
          }).on("changeDate", function (e) {
              console.log(this.state.msg);
          });
  
      },
      render: function () {
          return (
                      // render HTML here.
  
          )
      }
  });
  </code></pre>
  
  <p>but getting this.state is undefined. Please can any one help me.</p>