Skip to content

Commit 3031c65

Browse files
committed
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.
1 parent daf4182 commit 3031c65

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/docs/09.1-animation.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,11 @@ By default `ReactTransitionGroup` renders as a `span`. You can change this behav
175175
```
176176

177177
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+
```

0 commit comments

Comments
 (0)