React with refs
printMe(){ $(this.refs.demo).css("background-color", "yellow"); } <div ref="demo" onClick={this.printMe.bind(this)}>click me</div>