title: ReactJS set state does not assign array from Axios response data
body: <p>I've defined an empty array in the react component constructor which I wish to assign with json response data from an API call</p>
  
  <pre><code>class Grid extends Component {
    constructor(props) {
      super(props);
  
      this.state = {
        blogs : []
      };
    }
  </code></pre>
  
  <p>I call the <code>componentDidMount</code> method to load data on this component where I'm using <code>setState</code> to assign values</p>
  
  <pre><code>componentDidMount(){
    Axios.get("/api/blogs").then(response =&gt; {
      const blogData = response.data;
      this.setState({blogs: blogData.data});
    });
  }
  </code></pre>
  
  <p>The JSON response data is as follows (Laravel collection resource with meta and links)</p>
  
  <pre><code>{
    "data": [
      {
        "title": "Experiments in DataOps",
        "status": true,
        "publish_date": "2020-01-29",
        "slug": "experiments-in-dataops"
      },
      {
        "title": "What is it about certifications anyway?",
        "status": true,
        "publish_date": "2020-01-29",
        "slug": "what-is-it-about-certifications-anyway"
      }
    ],
    "links": {
      "self": "link-value",
      "first": "http://adminpanel.test/api/blogs?page=1",
      "last": "http://adminpanel.test/api/blogs?page=1",
      "prev": null,
      "next": null
    },
    "meta": {
      "current_page": 1,
      "from": 1,
      "last_page": 1,
      "path": "http://adminpanel.test/api/blogs",
      "per_page": 15,
      "to": 2,
      "total": 2
    }
  }
  </code></pre>
  
  <p>the blogs array however remains undefined when I'm calling it later in populating the grid data</p>
  
  <p><code>&lt;BootstrapTable data={this.blogs} version="4" striped hover pagination search options={this.options}&gt;</code></p>
  
  <p>I get an empty table, calling <code>console.log</code> on <code>blogs</code> and <code>this.blogs</code> reveals it's undefined.</p>
  
  <p>I'm using <code>reactstrap</code> and <code>react-bootstrap-table</code> for this grid component.</p>