Created
February 23, 2014 11:18
-
-
Save andreypopp/9170116 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var React = require('react'); | |
var TransitionGroup = require('react/lib/ReactCSSTransitionGroup'); | |
var Router = require('react-router-component'); | |
var AnimatedLocations = React.createClass({ | |
mixins: [ | |
Router.Environment.Mixin(Router.hashRoutingEnvironment), | |
Router.RouterMixin | |
], | |
render: function() { | |
var children = this.state.match.getChildren(); | |
var component = TransitionGroup({component: React.DOM.div}, children); | |
return this.transferPropsTo(component); | |
} | |
}); | |
module.exports = AnimatedLocations; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this.transferPropsTo(component);???
is exits ??which api???