Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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;
@lazyTai

This comment has been minimized.

Copy link

commented Sep 23, 2017

this.transferPropsTo(component);???
is exits ??which api???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.