@samitouri / QOS-React-2 / commits / 42c837e4dd

remove child factories

petehunt committed Feb 18, 2014 at 22:48 UTC 42c837e4ddc32550b0a7f59401f4a3f4a3731445
1 file changed -8
docs/docs/09.1-animation.md
-8
@@ -104,8 +104,6 @@ This is called when the `willEnter` `callback` is called.
104
105 This is called when the child has been removed from the `ReactTransitionGroup`. Though the child has been removed, `ReactTransitionGroup` will keep it in the DOM until `callback` is called.
106
107 -Note that because the child has been removed you can no longer send it reactive updates. If you need this functionality, see the section on Child Factories below.
108 -
107 ### `componentDidLeave()`
108
109 This is called when the `willLeave` `callback` is called (at the same time as `componentWillUnmount`).
@@ -121,9 +119,3 @@ By default `ReactTransitionGroup` renders as a `span`. You can change this behav
119 ```
120
121 Every DOM component is under `React.DOM`. However, `component` does not need to be a DOM component. It can be any React component you want; even ones you've written yourself!
124 -
125 -### Advanced Feature: Child Factories
126 -
127 -`ReactTransitionGroup` is unique because when a child leaves `ReactTransitionGroup` it may stay in the DOM after the child is removed from the group. This means that you can't send it reactive updates anymore. If you need to send it updates, you can provide a `childFactory` callback prop which will take the original child instance (even after it has left the group) and return a React component to render in its place.
128 -
129 -Normally you do not need to think about this feature. If you do, the easiest way to understand how this works is to look at the source for `ReactCSSTransitionGroup`.