Guest User

Untitled

a guest
Oct 18th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. <CardsContainerInner>
  2. {cardsMock.cards.map(card =>
  3. <CardsItem key={card.key} card={card} item={this.props.item}
  4. active={this.state.active}/>
  5. )}
  6.  
  7. handleClick = () =>{
  8. this.setState({
  9. clicked: !this.state.clicked
  10. })
  11.  
  12. render() {
  13. return <CardItem className={classnames({
  14. 'selected': this.state.clicked
  15. })}
  16. onClick={this.handleClick}
  17. ></CardItem>
Add Comment
Please, Sign In to add comment