From e0232a03522bb9f8da22280a31af5d8690769a72 Mon Sep 17 00:00:00 2001 From: Mark Funk Date: Tue, 18 Nov 2014 13:49:23 -0500 Subject: [PATCH] Animation documentation for ReactTransitionGroup Update to the animation documentation for ReactTransitionGroup to clear the air on where one can use it. If someone tries to use it off of React.addons.ReactTransitionGroup, which is undefined, instead of its real location, React.addons.TransitionGroup, they get a vague error about being unable to set defaultProps of undefined in the React createElement body. --- docs/10.1-animation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/10.1-animation.md b/docs/10.1-animation.md index 5794e62d..d18b1326 100644 --- a/docs/10.1-animation.md +++ b/docs/10.1-animation.md @@ -141,7 +141,7 @@ You can disable animating `enter` or `leave` animations if you want. For example ## Low-level API: `ReactTransitionGroup` -`ReactTransitionGroup` is the basis for animations. When children are declaratively added or removed from it (as in the example above) special lifecycle hooks are called on them. +`ReactTransitionGroup` is the basis for animations. It is accessible as `React.addons.TransitionGroup`. When children are declaratively added or removed from it (as in the example above) special lifecycle hooks are called on them. ### `componentWillEnter(callback)`