mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-01 09:01:45 +08:00
Merge pull request #8753 from jwbay/react-transition-group-props
TransitionGroup spreads HTMLAttribute props onto its component
This commit is contained in:
2
react/react-addons-transition-group.d.ts
vendored
2
react/react-addons-transition-group.d.ts
vendored
@@ -7,7 +7,7 @@
|
||||
|
||||
declare namespace __React {
|
||||
|
||||
interface TransitionGroupProps {
|
||||
interface TransitionGroupProps extends HTMLAttributes {
|
||||
component?: ReactType;
|
||||
className?: string;
|
||||
childFactory?: (child: ReactElement<any>) => ReactElement<any>;
|
||||
|
||||
@@ -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)({
|
||||
|
||||
Reference in New Issue
Block a user