Closed ktranish closed 1 year ago
Simple hooks like this aren't even usable. I wouldn't recommend this library to anyone trying it out. Don't waste your time on this and start looking for alternatives - https://www.npmjs.com/package/@react-google-maps/api
@nytrek The hooks can only be used when the provider is initialized. And then only in the child components of said provider. So your example code is lacking the right setup. Please have a look at the example in the README on the repos' homepage, right where you started.
RTFM, thanks!
I find this package underrated and working very well in one of my React project(TypeScript) with parcel bundler, but not working in a nextjs(javaScript, not typeScript) project, both having same react version:
"next": "^14.0.4",
"react": "^18.2.0",