blin0129
Results
1
comments of
blin0129
Try replace componentWillReceiveProps function in CardStack.js with following ` componentWillReceiveProps(nextProps){ if (!this._isSameChildren(nextProps.children, this.props.children)) { this.setState({ cards: nextProps.children, cardA: nextProps.children[(this.state.topCard=='cardA')? this.state.sindex-2 : this.state.sindex-1], cardB: nextProps.children[(this.state.topCard=='cardB')? this.state.sindex-2 : this.state.sindex-1] }); } }...