title: You have included the Google Maps JavaScript API multiple times on this page
body: <p>how can I avoid “You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.” if I am using google-map-react to display the map and react-places-autocomplete in another component to get the address and coordinates ?</p>
  
  <pre><code>//LocationMapPage  component that displays the map box and pass the props to it
  class LocationMapPage extends Component {
  
    render() {
      let {latLng,name,address} = this.props.location;
      return (
          &lt;MapBox lat={latLng.lat} lng={latLng.lng} name={name} address={address}/&gt;
      )
    }
  
  }
  
  //MapBox component
  import React from "react";
  import GoogleMapReact from 'google-map-react';
  import apiKey from "../../configureMap";
  
  
  const Marker = () =&gt; &lt;i className="fa fa-map-marker fa-2x text-danger" /&gt;
  
  const MapBox = ({lat,lng, name, address}) =&gt; {
      const center = [lat,lng];
      const zoom = 14;
      return (  
          &lt;div style={{ height: '300px', width: '100%' }}&gt;
              &lt;GoogleMapReact
              bootstrapURLKeys={{ key: apiKey }}
              defaultCenter={center}
              defaultZoom={zoom}
              &gt;
              &lt;Marker
                  lat={lat}
                  lng={lng}
                  text={`${name}, ${address}`}
              /&gt;
              &lt;/GoogleMapReact&gt;
        &lt;/div&gt;
      );
  }
  
  export default MapBox; 
  </code></pre>
  
  <p>Map is blank:
  <a href="https://i.stack.imgur.com/as69u.png" rel="noreferrer"><img src="https://i.stack.imgur.com/as69u.png" alt="enter image description here"></a>
  The Error in the console:You have included the Google Maps JavaScript API multiple times on this page. This may cause unexpected errors.</p>
  
  <p>How to solve? </p>
  
  <p>I am using <a href="https://github.com/google-map-react/google-map-react" rel="noreferrer">google-map-react</a>, <a href="https://github.com/hibiken/react-places-autocomplete" rel="noreferrer">react-places-autocomplete</a> in the project.</p>