mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Avoid JSX in ReactCSSTransitionGroup code
Supposedly we want these to be plain JS.
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*
|
||||
* @typechecks
|
||||
* @providesModule ReactCSSTransitionGroup
|
||||
* @jsx React.DOM
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
@@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user