Skip to content

Instantly share code, notes, and snippets.

@andreypopp
Created February 23, 2014 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreypopp/9170116 to your computer and use it in GitHub Desktop.
Save andreypopp/9170116 to your computer and use it in GitHub Desktop.
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
Copy link

lazyTai 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