Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Official way to load the google api #12

Open
bogdansoare opened this issue May 21, 2020 · 3 comments
Open

Official way to load the google api #12

bogdansoare opened this issue May 21, 2020 · 3 comments

Comments

@bogdansoare
Copy link

I see that in the examples a useGoogleApiLoader hook is used, but it's not provided by the library.
One way would be to copy paste the code but unfortunately I'm not using flow.

Any suggestions? Will you add an official hook that's included in the library?

Thanks.

@istarkov
Copy link
Contributor

istarkov commented May 26, 2020

There are ton of libraries over the internet to load google api (3rd party scripts), it can be added via script tag and in 90% of cases its enough and dont need js. Most projects we have used their own methods for loading. I had issues in google map react about opinionated loader it used. So here we dont mind about loading method, its on user to somehow load google api into a project.

@istarkov
Copy link
Contributor

here for example official google way https://developers.google.com/maps/documentation/javascript/tutorial

@istarkov
Copy link
Contributor

use search on google or github like useScript - there will be links and articles too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants