title: How to change buttons inside react-table using if and else statement?
body: <p>My reactJS web page has this react-table with 2 buttons inside, I want to change those button when a cell column status changes its value.</p>
  
  <pre><code>render() {
    const columns = [
      {
        Header: "Actions",
        accessor: "ID",
        Cell: ({ value }) =&gt; (
          &lt;div style={buttonTablestyle}&gt;
            &lt;Button
              bsStyle="info"
              onClick={() =&gt; {
                if (window.confirm("You are approving this request after you press OK...")) {
                  this.updateFunctionYES(value);
                }
              }}
            &gt;
              Approve
            &lt;/Button&gt;
            &amp;nbsp;&amp;nbsp;&amp;nbsp;
            &lt;Button
              bsStyle="warning"
              onClick={() =&gt; {
                if (window.confirm("You are rejecting this request after you press OK...")) {
                  this.updateFunctionNO(value);
                }
              }}
            &gt;
              Reject
            &lt;/Button&gt;
          &lt;/div&gt;
        )
      }
    ];
  }
  </code></pre>