简体   繁体   中英

How to implement Google Places API in React JS?

I'm trying to implement Google Places API in React JS, but I am not able to do that, I don't know where I have to start, I was looking for some libraries, but everything that I get is about Google Maps, and those are 2 different APIs.

Could someone help me with this?

You did not provide much details but I think this tutorial may fits your needs, check it out:

Google Maps React Component

The entire module is available at google-maps-react as indicated in the tutorial.
Hope it helps.

You can also use react-google-location npm package. it provide everything that you need such as current location,coordinates and google places also .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM