@samitouri / QOS-React-2 / commits / 0dd942b121

Update Animation docs for createElement

Paul O’Shannessy committed Oct 23, 2014 at 21:34 UTC 0dd942b1214d1b3cdd3524f9331031024c4ef602
1 file changed +7 -3
docs/docs/09.1-animation.md
+7 -3
@@ -165,17 +165,21 @@ This is called when the `willLeave` `callback` is called (at the same time as `c
165 By default `ReactTransitionGroup` renders as a `span`. You can change this behavior by providing a `component` prop. For example, here's how you would render a `<ul>`:
166
167 ```javascript{1}
168 -<ReactTransitionGroup component={React.DOM.ul}>
168 +<ReactTransitionGroup component="ul">
169 ...
170 </ReactTransitionGroup>
171 ```
172
173 -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!
173 +Every DOM component that React can render is available for use. However, `component` does not need to be a DOM component. It can be any React component you want; even ones you've written yourself!
174 +
175 +> Note:
176 +>
177 +> Prior to v0.12, when using DOM components, the `component` prop needed to be a reference to `React.DOM.*`. Since the component is simply passed to `React.createElement`, it must now be a string. Composite components must pass the factory.
178
179 Any additional, user-defined, properties will be become properties of the rendered component. For example, here's how you would you render a `<ul>` with css class:
180
181 ```javascript{1}
178 -<ReactTransitionGroup component={React.DOM.ul} className="animated-list">
182 +<ReactTransitionGroup component="ul" className="animated-list">
183 ...
184 </ReactTransitionGroup>
185 ```