()
| 713 | } |
| 714 | |
| 715 | componentDidMount() { |
| 716 | instances.push(this); |
| 717 | if (this.props.depth < this.props.count) { |
| 718 | ReactDOM.render( |
| 719 | <MockComponent |
| 720 | depth={this.props.depth + 1} |
| 721 | count={this.props.count} |
| 722 | />, |
| 723 | ReactDOM.findDOMNode(this) |
| 724 | ); |
| 725 | } |
| 726 | } |
| 727 | } |
| 728 | |
| 729 | ReactTestUtils.renderIntoDocument(<MockComponent depth={0} count={2} />); |