{"repo":"ErrorPro/react-google-autocomplete","free":true,"listed":false,"github":"https://github.com/ErrorPro/react-google-autocomplete","clone":"git clone https://github.com/ErrorPro/react-google-autocomplete.git","description":"React components for google places API.","language":"JavaScript","stars":507,"topics":["google-autocomplete","react","reactjs","places","google-places","google-api","google-places-widget","google-places-autocomplete","google-places-service","google-places-debounce"],"license":"MIT","category":"ui-components","readme_excerpt":"The package provides 3 tools for working with google places services: 1. ReactGoogleAutocomplete is a simple html input component that provides functionality of the google places widgets. 2. 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. 3. usePlacesAutocompleteService is a more complex react hook. It uses google 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. 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. Install npm i react-google-autocomplete --save or yarn add react-google-autocomplete As of version 1.2.4, you can now pass an apiKey prop to automatically load the Google maps scripts. The api key can be found in your google cloud console.. The places service hook requires both the Places API and Maps Javascript API to be enabled. Alternatively if not passing the apiKey prop, you can include google autocomplete link api in your app. Somewhere in index.html or somewhere else. More info here ReactGoogleAutocomplete This is a simple react component for working with google autocomplete Props - apiKey : pass to automatically load the Google maps scripts.","default_branch":null,"files":null,"tree":[],"storefront":"/r/ErrorPro","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ErrorPro/react-google-autocomplete/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}