Skip to content

Instantly share code, notes, and snippets.

@4knort
Created June 26, 2017 12:02
Show Gist options
  • Save 4knort/538295c9462db6c6a09863d97946488e to your computer and use it in GitHub Desktop.
Save 4knort/538295c9462db6c6a09863d97946488e to your computer and use it in GitHub Desktop.
render() {
<div className={classPanel} style={{ backgroundColor: this.props.color, cursor: 'pointer' }} onClick={() => {
this.itemClick();
this.props.onClickAddColor(this.state.isClicked);
}}>
<span className={classIcon}>+</span>
</div>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment