You also may need to add this.apiCall = this.apiCall.bind(this)
before the this.apiCall('surfing');
on your constructor
method. This will bind the scope of apiCall
to the scope of the react component.
More here: https://facebook.github.io/react/docs/handling-events.html
Also, remove this.apiCall('surfing');
from the constructor
and put it into a componentDidMount
function, the constructor should not be used for execution.