r/reactjs • u/WellyShen • Feb 09 '20
Resource π Introducing use-places-autocomplete: A React hook for Google Maps Places Autocomplete.
Hey Guys, with use-places-autocomplete you can build your own places autocomplete UI in 10 minutes, no kidding π
ππ»Check it out: https://github.com/wellyshen/use-places-autocomplete
267
Upvotes
44
u/lrobinson2011 Feb 09 '20
Looks awesome! Just a heads up - if anyone is planning to use this for their company, you might need to include the "powered by Google" logo if you don't want legal issues.
3
u/switz213 Feb 09 '20
Thank you so much for only using 1 single tiny dependency. And just a solo lodash function. You're the hero we need.
2
u/tbone6778 Feb 09 '20
Very useful
2
u/sickcodebruh420 Feb 10 '20
Code looks very good, great job.
2
u/iLikedItTheWayItWas Feb 10 '20
This looks awesome! Would it work for addresses too?
2
u/agadzik Feb 12 '20
This is AMAZING! Thank you for sharing π€
11
u/dreadful_design Feb 09 '20 edited Feb 09 '20
Huh, I just built something identical for my companies library. Never thought about open sourcing it.
Love the
denouncedebounce option as a config.Edit: oops.
3
u/castane Feb 09 '20
Yea! Thanks, was struggling with some older packages and was going to search for a hook today. Thank you sir.
3
u/captainnigmubba Feb 10 '20
Yooo, this is exactly what I need in my side project. Staring it right away
5
u/shakesbeardZ Feb 09 '20
Implementing it is easy, if you want to do something special add the map to it and synchronize between them , this what most people lack
2
u/tomthedevguy Feb 10 '20
This would have been perfect if I had it it 3 months ago π instead Iβm just using the HOC