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.
Mark Funk committed
Nov 18, 2014 at 13:49 UTC
5b2ffde48daa0d70dece93a0491949e1fdeb6eae
1 file changed
+1
-1
docs/docs/10.1-animation.md
+1
-1
@@ -141,7 +141,7 @@ You can disable animating `enter` or `leave` animations if you want. For example
141
142
## Low-level API: `ReactTransitionGroup`
143
144
-`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.
144
+`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.
145
146
### `componentWillEnter(callback)`
147