Merge pull request #8753 from jwbay/react-transition-group-props

TransitionGroup spreads HTMLAttribute props onto its component
This commit is contained in:
Ryan Cavanaugh
2016-06-30 17:13:52 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
declare namespace __React {
interface TransitionGroupProps {
interface TransitionGroupProps extends HTMLAttributes {
component?: ReactType;
className?: string;
childFactory?: (child: ReactElement<any>) => ReactElement<any>;

View File

@@ -486,7 +486,9 @@ React.createFactory(CSSTransitionGroup)({
transitionName: "transition",
transitionAppear: false,
transitionEnter: true,
transitionLeave: true
transitionLeave: true,
id: "some-id",
className: "some-class"
});
React.createFactory(CSSTransitionGroup)({