@samitouri / QOS-React-2 / commits / 3031c6591e

Update 09.1-animation.md

Add note about ReactTransitionGroup, that any additional, user-defined, properties will be become properties of the rendered component. And example how to render a `<ul>` with css class.

Sergey Generalov committed Oct 17, 2014 at 20:18 UTC 3031c6591ec97e5d1f9f226645a7fbf193f28055
1 file changed +8
docs/docs/09.1-animation.md
+8
@@ -175,3 +175,11 @@ By default `ReactTransitionGroup` renders as a `span`. You can change this behav
175 ```
176
177 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!
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}
182 +<ReactTransitionGroup component={React.DOM.ul} className="animated-list">
183 + ...
184 +</ReactTransitionGroup>
185 +```