react-google-maps icon indicating copy to clipboard operation
react-google-maps copied to clipboard

OverlayView not working with React v16

Open moar55 opened this issue 6 years ago • 5 comments

When I am using React v16 and using the OverlayView example in the docs I get this error: parentComponent must be a valid React Component. I am only able to solve this issue if I downgrade to React v15.

moar55 avatar Aug 19 '19 13:08 moar55

@moar55 This repo is unmaintained more than a year, please refer to npm @react-google-maps/api

We have docs, examples and community.

JustFly1984 avatar Aug 21 '19 23:08 JustFly1984

wow! how did I miss that! thank you

moar55 avatar Aug 28 '19 16:08 moar55

Although, i have already used this repo in my project, how hard is it to migrate to the one that is maintained?

moar55 avatar Aug 28 '19 16:08 moar55

Please follow our docs

JustFly1984 avatar Aug 28 '19 18:08 JustFly1984

@moar55 The repo of this project is unmaintained more than a year, and we had build new version https://www.npmjs.com/package/@react-google-maps/api

We had rewrite it to TypeScript, and updating it frequently: https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api You can enjoy autocomplete.

You can see our docs: https://react-google-maps-api-docs.netlify.com/

Also a lot of examples: https://react-google-maps-api-gatsby-demo.netlify.com/ https://github.com/JustFly1984/react-google-maps-api/tree/master/packages/react-google-maps-api-gatsby-example/src/examples

The bundle size is much smaller: https://bundlephobia.com/result?p=@react-google-maps/[email protected]

Enjoy!

JustFly1984 avatar Sep 18 '19 12:09 JustFly1984