Skip to content

Commit

Permalink
Avoid JSX in ReactCSSTransitionGroup code
Browse files Browse the repository at this point in the history
Supposedly we want these to be plain JS.
  • Loading branch information
sophiebits committed Mar 7, 2014
1 parent 1d20924 commit ec54dcb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/addons/transitions/ReactCSSTransitionGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*
* @typechecks
* @providesModule ReactCSSTransitionGroup
* @jsx React.DOM
*/

"use strict";
Expand Down Expand Up @@ -43,21 +42,22 @@ var ReactCSSTransitionGroup = React.createClass({
// We need to provide this childFactory so that
// ReactCSSTransitionGroupChild can receive updates to name, enter, and
// leave while it is leaving.
return (
<ReactCSSTransitionGroupChild
name={this.props.transitionName}
enter={this.props.transitionEnter}
leave={this.props.transitionLeave}>
{child}
</ReactCSSTransitionGroupChild>
return ReactCSSTransitionGroupChild(
{
name: this.props.transitionName,
enter: this.props.transitionEnter,
leave: this.props.transitionLeave
},
child
);
},

render: function() {
return this.transferPropsTo(
<ReactTransitionGroup childFactory={this._wrapChild}>
{this.props.children}
</ReactTransitionGroup>
ReactTransitionGroup(
{childFactory: this._wrapChild},
this.props.children
)
);
}
});
Expand Down

0 comments on commit ec54dcb

Please sign in to comment.