title: React's invalid prop type 'array' expected 'object'
body: <p>I'm displaying company info in detail page (coming from list of companies, sending ID in params through React Link)</p>
  
  <p>Now we're talking about the detail page. I receive the ID, call the api for json array: </p>
  
  <pre><code> {"_id":"58f7f61cff8d4014d7f7730b","company_name":"Vodafone" .... } 
  </code></pre>
  
  <p>and expect it as:</p>
  
  <pre><code>export default class Detail extends Component {
    static propTypes = {
      getCompany: PropTypes.func.isRequired,
      **company**: PropTypes.array,
    }
  </code></pre>
  
  <p>Everything works, is received and displayed, but I still get the warning saying: </p>
  
  <pre><code>"Warning: Failed prop type: Invalid prop `company` of type `object` supplied to `Detail`, expected `array`."
  </code></pre>
  
  <p>I'm still quite new to react, so I suppose maybe my API isn't returning an array, but when I switch the prop definition of company to "object" I get the same warning with reversed problem - receiving array, expecting object, so that's a circle I can't find the way out of.</p>
  
  <p>Has anyone seen anything similar before? Is the problem with company prop or the API?</p>
  
  <p>Thanks a lot</p>