Skip to content

Commit 7918929

Browse files
committed
Update README.md
1 parent 9075ff6 commit 7918929

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
2. [usePlacesWidget](#useplaceswidget) is a react hook that provides the same functionality as `ReactGoogleAutocomplete` does but it does not create any dom elements. Instead, it gives you back a react ref which you can set to any input you want.
1212
3. [usePlacesAutocompleteService](#useplacesautocompleteservice) is a more complex react hook. It uses [google places autocomplete service](https://developers.google.com/maps/documentation/javascript/reference/places-autocomplete-service) and it provides all the functionality to you as the returned value. In addition to that, you can set a `debounce` prop which will reduce the amount of requests users send to Google.
1313

14+
If you find this package helpful please give it a star because it hepls it grow and motivates us to build new features and support the old ones.
15+
1416
## Install
1517

1618
`npm i react-google-autocomplete --save`
@@ -119,13 +121,10 @@ This is an initial implementation of debounced google places autocomplete servic
119121
import usePlacesService from "react-google-autocomplete/lib/usePlacesAutocompleteService";
120122

121123
export default () => {
122-
const {
123-
placePredictions,
124-
getPlacePredictions,
125-
isPlacePredictionsLoading,
126-
} = useGoogle({
127-
apiKey: process.env.REACT_APP_GOOGLE,
128-
});
124+
const { placePredictions, getPlacePredictions, isPlacePredictionsLoading } =
125+
useGoogle({
126+
apiKey: process.env.REACT_APP_GOOGLE,
127+
});
129128

130129
return (
131130
<>

0 commit comments

Comments
 (0)