Google places autocomplete input for ReactJS.
npm install react-google-places-autocompleteReact component for easily use Google Places Autocomplete
Install the latest version:
``sh`
npm install --save react-google-places-autocomplete
or
yarn add react-google-places-autocomplete
Use the component!
`js
import React from 'react';
import GooglePlacesAutocomplete from 'react-google-places-autocomplete';
const Component = () => (
export default Component;
`
Coming from v2? Check the migration guide
1. Fork this repo
2. Clone your fork
3. Code 🤓
4. Test your changes
For this, I like to use yalc, as it allows to emulate the process of using npm/yarn.
1. Install yalc
2. Build project with yarn build or npm run buildyalc publish
3. Publish the package with yalc: yalc add react-google-places-automocomplete
4. Add the package to your test project yalc update react-google-places-autocomplete`
5. If needed, to update the package on your test project:
5. Submit a PR!
Icons made by Freepik from www.flaticon.com