title: How Can i Get data using GET API In Tabular Form
body: <p>I want to Display My Complaints Data in the Tabular Form Using the table. i have tried using List it worked. I don't how to Display data in tabular form using Table. When i have tried console log and postman it displays the data contained in the database. I want to get the data in the tabular form. Please help me with a solution.
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React,{Component} from 'react';
  import {Table} from 'react-bootstrap';
  import axios from 'axios';
  
  export default class Display extends React.Component{
    constructor(props) {
      super(props);
      this.componentDidMount();
      this.state = {
        complaints: []
      };
    }    
        componentDidMount() {
          axios.get(`http://localhost:80/get/complaints`)
            .then(res =&gt; {
              // console.log(res.data)
              // const complaints = res;
              this.setState({ complaints: res.data });
            })
        }
      
      render() {
        console.log(this.state.complaints)
          return (
            // &lt;ul&gt;
            // {this.state.complaints.map(complaints =&gt; (
            //   &lt;li key={complaints.id}&gt;{complaints.Regdno}&lt;/li&gt;
            // ))}
            //   &lt;/ul&gt;
              &lt;Table responsive&gt;
              
    &lt;thead&gt;
      &lt;tr &gt;
        &lt;th&gt;Regd_no&lt;/th&gt;
        &lt;th&gt;Year Of Study&lt;/th&gt;
          &lt;th&gt;Location&lt;/th&gt;
        &lt;th&gt;Department&lt;/th&gt;
        &lt;th&gt; Disciplinary Issue&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
   
    &lt;/Table&gt;
    
    
  
          )
      }
  }</code></pre>
  </div>
  </div>
  </p>