title: React/Redux AG Grid not loading data
body: <p>I have a React app that uses Redux for the state management.</p>
  
  <p>I am looking to integrate AG-Grid for displaying a nice grid of data, but when I try to set the <code>rowData</code> to the state for the data it returns no rows.</p>
  
  <p>BookingList.js</p>
  
  <pre><code>import React, { Component } from 'react';
  import { connect } from 'react-redux';
  import { fetchBookings } from '../../actions';
  import { AgGridReact } from 'ag-grid-react';
  import 'ag-grid-community/dist/styles/ag-grid.css';
  import 'ag-grid-community/dist/styles/ag-theme-balham.css';
  
  class BookingList extends Component {
    componentDidMount() {
      this.props.fetchBookings();
    }
    constructor(props) {
      super(props);
      this.state = {
        columnDefs: [
          {
            headerName: 'First Name',
            field: 'firstName'
          },
          {
            headerName: 'Last Name',
            field: 'lastName'
          },
          {
            headerName: 'Email',
            field: 'emailAddress'
          },
          {
            headerName: 'Address',
            field: 'address'
          },
          {
            headerName: 'Market Date',
            field: 'marketDate'
          },
          {
            headerName: 'Stall Type',
            field: 'stallType'
          }
        ],
        rowData: [this.props.bookings]
      };
    }
  
    render() {
      return (
        &lt;div className="ag-theme-balham"&gt;
          &lt;AgGridReact
            columnDefs={this.state.columnDefs}
            rowData={this.state.rowData}
          /&gt;
        &lt;/div&gt;
      );
    }
  }
  
  function mapStateToProps({ bookings }) {
    return { bookings };
  }
  export default connect(
    mapStateToProps,
    { fetchBookings }
  )(BookingList);
  </code></pre>
  
  <p>The <code>fetchBookings</code> does work and populates data if I use a Material Design Card layout rather than AG-Grid so I now that part is working correctly.</p>