Auto complete address for search in reactjs

191 Views Asked by At

I want to integrate autocomplete address population in search field using reactjs. example when I enter a place related places with address is populated and we get the latitude and longitude also

sample react library is below https://www.npmjs.com/package/use-places-autocomplete/v/1.9.3#live-demo But above one is paid one.

Can I available any free library for this functionality and I am using functional component. Not need class component. I am new in React js. Thanks in advance

I tried one package, they provided installation step ,but that is using for class component. But I am using functional component.

https://www.npmjs.com/package/react-autocomplete-places

Otherwise can we convert it into functional component? and if possible the how can convert it to functional component?

1

There are 1 best solutions below

0
On

You can try replicating the example given in this article: Places Autocomplete React