Retrieving value of checkbox in React.js
<p>I want to retrieve the value of my checkbox when it is checked.</p>

<p>I am using this "<a href="http://react-component.github.io/checkbox/" rel="noreferrer">http://react-component.github.io/checkbox/</a>".</p>

<p>My code looks like this.</p>

<pre><code>&lt;div className="user_box"&gt;
    { check.map((values , i)=&gt; {
        return &lt;Checkbox
            name = "checkbox"
            onChange={this.checkvalue.bind(this)}
            value={values.username} 
        /&gt;
    })}
&lt;/div&gt;
</code></pre>

<p>My function:</p>

<pre><code>checkvalue(e){
    // var all_users = [];
    // var value = this.checkbox.value;
    // all_users.push(value);
    // console.log(all_users);

    console.log('checkbox checked:', (e.target.checked));
}
</code></pre>

<p>I'm not understanding how to retrieve the value of the checkbox.</p>