News for hackers. Stuff that matters.
Re:React v0.12 by spicyj on Tuesday October 28, 2014 @09:21PM (#8524930)
The suggested way of doing this is define a new component like so:

  var BigButton = React.createClass({
    render: function() {
      return (
        <Button
          {...this.props}
          className={'btn-large ' + this.props.className} />
      );
    }
  });
(Before React 0.12 introduced the JSX spread syntax, this was handled by transferPropsTo.)

There are no comments on this comment yet.