How to get tags attribute value in ReactJs?
<p>I have created one small app with reactjs. On button tag I've set one attribute and passing the value. When i click on button need get that attribute value. How to achieve this one with react js?</p>

<p>Sample code,</p>

<pre><code>var React  = require('react');
var CommentWall = React.createClass({
  getInitialState:function(){
    return {
      data:[]
    }
  },
  commentOpen:function(event){
    var targetID = this.state.dataId;
    console.log(targetID);
    $.ajax({
     url:url+"comments/"+targetID,
     type:"GET",
     dataType:"JSON",
     success:function(data){
       this.setState({data:data});
     });
  }
  render:function(){
    var wallCard;
    var commentWall = this.props.data.map(function(el, i){
      wallCard = &lt;div className="card-content"&gt;
          &lt;div className="content-inner"&gt;{el.LINES}&lt;/div&gt;
          &lt;button dataId={el.ID}&gt;Click&lt;/button&gt;
        &lt;/div&gt;;
      return &lt;div className="card wall-card" key={i}&gt;{wallCard}&lt;/div&gt;;
    }.bind(this));
    return (
      &lt;div&gt;{commentWall}&lt;/div&gt;
    );
  }
});

module.exports = CommentWall;
</code></pre>