var React = require('react-tools/build/modules/react');
require('jquery-autosize');

module.exports = React.createClass({

  componentDidMount: function() {
    if (this.props.autosize) {
      window.jQuery(this.getDOMNode()).autosize();
    }
  },

  componentWillUnmount: function() {
    window.jQuery(this.getDOMNode()).trigger('autosize.destroy');
  },

  render: function() {
    return this.transferPropsTo(React.DOM.textarea(null, this.props.children));
  }

});

var React = require('react-tools/build/modules/React');
require('jquery-autosize');

module.exports = React.createClass({

  componentDidMount: function() {
    if (this.props.autosize) {
      window.jQuery(this.getDOMNode()).autosize();
    }
  },

  componentWillUnmount: function() {
    window.jQuery(this.getDOMNode()).trigger('autosize.destroy');
  },

  render: function() {
    return this.transferPropsTo(React.DOM.textarea(null, this.props.children));
  }

});

fix module case