@samitouri / QOS-React-2 / commits / 3b33ead6ac

adding docs for componentWillAppear and componentDidAppear

Bob Renwick committed Mar 24, 2015 at 01:41 UTC 3b33ead6ac1b94bb55e02dc81ef093cacd237144
1 file changed +8
docs/docs/10.1-animation.md
+8
@@ -143,6 +143,14 @@ You can disable animating `enter` or `leave` animations if you want. For example
143
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 +### `componentWillAppear(callback)`
147 +
148 +This is called at the same time as `componentDidMount()` for components that are initially mounted in a `TransitionGroup`. It will block other animations from occurring until `callback` is called. It is only called on the initial render of a `TransitionGroup`.
149 +
150 +### `componentDidAppear()`
151 +
152 +This is called after the `callback` function that was passed to `componentWillAppear` is called.
153 +
154 ### `componentWillEnter(callback)`
155
156 This is called at the same time as `componentDidMount()` for components added to an existing `TransitionGroup`. It will block other animations from occurring until `callback` is called. It will not be called on the initial render of a `TransitionGroup`.