title: just select one checkbox in reactjs
body: <p>How can I create the method when I click on one checkbox other checkbox unselceted and just can select one of them. </p>
  
  <pre><code>import React, { Component } from 'react';
  
  export default class Tablerow extends Component {
    constructor(props){
      super(props);
      let {listwebsites} = this.props;
      listwebsites.checked = false;
      this.state = {
          fields : {
            id: listwebsites.id
          }
      }
  
      this.click = this.click.bind(this);
      this.selectOnlyThis = this.selectOnlyThis.bind(this);
  
    }
    click(value){
      this.props.handleChangess(this.state, value);
    };
  
    render() {
          const {listwebsites} = this.props;
            return (
              &lt;tr&gt;
                &lt;td&gt;&lt;input id={`checkbox_${listwebsites.id}`} value={listwebsites.checked} onChange={e =&gt; this.click(e.target.checked)} type="checkbox" name="record"/&gt;&lt;/td&gt;
                &lt;td&gt;{listwebsites.name}&lt;/td&gt;
                &lt;td&gt;{listwebsites.url}&lt;/td&gt;
              &lt;/tr&gt;
            )
      }
  }
  </code></pre>