Skip to content

Commit d2ce25c

Browse files
committed
docs: tweak TransitionGroup's single child hack
1 parent c50e1dd commit d2ce25c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/TransitionGroup.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,12 +123,12 @@ TransitionGroup.propTypes = {
123123
* remember to spread them through if you are wrapping the `<Transition>` as
124124
* with our `<Fade>` example.
125125
*
126-
* While this component is meant to make it easier to animate multiple
127-
* `Transition` or `CSSTransition` children, sometimes you want to transition a
128-
* single child by changing its content, e.g. routes, slides, images in a
129-
* carousel etc. In that case you can change the `key` prop of the child
130-
* component along with its content, that way `TransitionGroup` will know that
131-
* it should transition the child.
126+
* While this component is meant for multiple `Transition` or `CSSTransition`
127+
* children, sometimes you may want to have a single transition child with
128+
* content that you want to be transitioned out and in when you change it
129+
* (e.g. routes, images etc.) In that case you can change the `key` prop of
130+
* the transition child as you change its content, this will cause
131+
* `TransitionGroup` to transition the child out and back in.
132132
*/
133133
children: PropTypes.node,
134134

0 commit comments

Comments
 (0)