import React from 'react';
import Map, {GoogleApiWrapper} from 'google-maps-react';

export class Container extends React.Component {
	onReady(mapProps, map) {
		// when map is ready and mounted
	}
	render() {
		return (
			<div>
				<Map 
					onReady={this.onReady.bind(this)}
					google={this.props.google} />
			</div>
		)
	}
}

export default GoogleApiWrapper({
	apiKey: __GAPI_KEY__
})(Container);
@@ -78,16 +78,72 @@
 eact';%0A%0A
+import %7B searchNearby %7D from 'utils/googleApiHelpers';%0A%0A
 export c
@@ -240,15 +240,311 @@
 and 
-mounted
+%0A%09%09const %7B google %7D = this.props;%0A%09%09const opts = %7B%0A%09%09%09location: map.center,%0A%09%09%09radius: '500',%0A%09%09%09types: %5B'cafe'%5D%0A%09%09%7D%0A%09%09searchNearby(google, map, opts)%0A%09%09%09.then((results, pagination) =%3E %7B%0A%09%09%09%09// we got some results and a pagination object%0A%09%09%09%7D).catch((status, result) =%3E %7B%0A%09%09%09%09// there was an error%0A%09%09%09%7D)
 %0A%09%7D%0A

Add google helpers and store return within onREeady()