I created a component in react, I want a separate searchbox not embedded in the map itself. I have been looking for tutorial to do this but no luck and also I found the google-maps-react documentation a bit confusing because it utilizes a HOC, compose, to simplify the map.
const Map = withScriptjs(withGoogleMap(props => {
return (
<div className="map-wrap">
<div className="map-searchbox"><input placeholder="Enter Address" /></div>
<div className="map">
<GoogleMap
defaultZoom={14}
center={{lat: 42.3601, lng: -71.0589}}
/>
</div>
</div>
)
}
))