React component for easily use Google Places Autocomplete
Install the latest version:
npm install --save react-google-places-autocomplete
or
yarn add react-google-places-autocomplete
Use the component!
import React from 'react';
import GooglePlacesAutocomplete from 'react-google-places-autocomplete';
const Component = () => (
<div>
<GooglePlacesAutocomplete
apiKey="****"
/>
</div>
);
export default Component;
Coming from v2? Check the migration guide
Fork this repo
Clone your fork
Code 🤓
Test your changes
For this, I like to use yalc, as it allows to emulate the process of using npm/yarn.
yarn build
or npm run build
yalc publish
yalc add react-google-places-automocomplete
yalc update react-google-places-autocomplete
Submit a PR!
Icons made by Freepik from www.flaticon.com