Files
react.dev/docs
David Hu 565aac5abe Clarify animating one or zero items in docs
When I first read these docs, it was not immediately clear to me that I could
use `React.addons.CSSTransitionGroup` to animate a single item coming into view,
or an item replacing an item already there. This was partly due to the example
which rendered a list of items.

This PR adds a blurb about being able to use
`React.addons.CSSTransitionGroup` with one or zero items, provides a code
example, and adds a note blockquote that a `key` attribute must always be
provided on each child of `React.addons.CSSTransitionGroup`. The latter point
was not immediately obvious from the original `TodoList` code example, since it
renders a list which would normally require `key` attributes anyway.

Test Plan:
- Refreshed `http://localhost:4000/react/docs/animation.html`, saw that the
  docs additions rendered correctly.
- Example code not tested (it was extracted from working code).
2014-07-27 00:26:17 -07:00
..
2013-07-17 00:15:49 -04:00
2014-03-13 21:12:25 +08:00
2014-04-07 17:47:41 -07:00
2014-06-12 16:27:40 -07:00
2014-02-21 13:07:51 -08:00
2014-07-19 16:14:27 +01:00
2014-05-09 15:34:12 -03:00
2013-09-03 13:25:23 -07:00
2014-07-15 22:34:33 -07:00
2013-09-24 15:47:17 -07:00
2014-07-17 15:19:58 -07:00