import React from 'react'; class ListStrays extends React.Component { constructor(props){ super(props) this.state = { strays: [], hei: '1' } } componentDidMount(){ var that = this; fetch('https://apollo.kevinmidboe.com/api/v1/seasoned/all').then( function(response){ response.json().then(function(data){ // console.log(data); that.setState({ strays: that.state.strays.concat(data) }) }) } ) } render(){ return(