Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <CardsContainerInner>
- {cardsMock.cards.map(card =>
- <CardsItem key={card.key} card={card} item={this.props.item}
- active={this.state.active}/>
- )}
- handleClick = () =>{
- this.setState({
- clicked: !this.state.clicked
- })
- render() {
- return <CardItem className={classnames({
- 'selected': this.state.clicked
- })}
- onClick={this.handleClick}
- ></CardItem>
Add Comment
Please, Sign In to add comment