Avoid JSX in ReactCSSTransitionGroup code
Supposedly we want these to be plain JS.
Ben Alpert committed
Mar 6, 2014 at 22:15 UTC
ec54dcbd8ff666801ac2ad2a36f2eb632e23a379
1 file changed
+11
-11
src/addons/transitions/ReactCSSTransitionGroup.js
+11
-11
@@ -15,7 +15,6 @@
15
*
16
* @typechecks
17
* @providesModule ReactCSSTransitionGroup
18
- * @jsx React.DOM
18
*/
19
20
"use strict";
@@ -43,21 +42,22 @@ var ReactCSSTransitionGroup = React.createClass({
42
// We need to provide this childFactory so that
43
// ReactCSSTransitionGroupChild can receive updates to name, enter, and
44
// leave while it is leaving.
46
- return (
47
- <ReactCSSTransitionGroupChild
48
- name={this.props.transitionName}
49
- enter={this.props.transitionEnter}
50
- leave={this.props.transitionLeave}>
51
- {child}
52
- </ReactCSSTransitionGroupChild>
45
+ return ReactCSSTransitionGroupChild(
46
+ {
47
+ name: this.props.transitionName,
48
+ enter: this.props.transitionEnter,
49
+ leave: this.props.transitionLeave
50
+ },
51
+ child
52
);
53
},
54
55
render: function() {
56
return this.transferPropsTo(
58
- <ReactTransitionGroup childFactory={this._wrapChild}>
59
- {this.props.children}
60
- </ReactTransitionGroup>
57
+ ReactTransitionGroup(
58
+ {childFactory: this._wrapChild},
59
+ this.props.children
60
+ )
61
);
62
}
63
});