React component for easily use Google Places Autocomplete
Install the latest version:
npm install --save @eezyquote/react-google-places
or
yarn add @eezyquote/react-google-places
Example:
import React from 'react';
import GooglePlacesAutocomplete from '@eezyquote/react-google-places';
const Component = () => (
<div>
<GooglePlacesAutocomplete
apiKey={process.env.GOOGLE_MAPS_API_KEY}
/>
</div>
);
export default Component;