React.js アプリ ( http://facebook.github.io/react/docs/animation.html )内のリストに入力するためのアニメーションを追加しようとしています。
しかしReactCSSTransitionGroup、そのような例外をスローします:
Uncaught TypeError: Cannot read property '_mockedReactClassConstructor' of undefined
警告とともに:
Warning: React.createElement: type should not be null or undefined. It should be a string (for DOM elements) or a ReactClass (for composite components).
warning.js:36
Warning: Only functions or strings can be mounted as React components.
私のコンポーネントは次のようになります。
var List = React.createClass({
  render: function () {
    var items = this.props.data
        .filter(function (item) {
            return item.stream;
        })
        .map(function (item) {
            return <div key={item.id}>item.name</div>;
        });
      return (
        <div className="list clearfix">
            <ReactCSSTransitionGroup transitionName="example">
                {items}
            </ReactCSSTransitionGroup>
        </div>
     );
  }
});