There are two most popular react abstraction of google maps API(judging by the weekly npm downloads and github repo stars). For a beginner like me, it is very confusing as I am not able to decide what can these libraries bring to my project and what not by merely looking at the documentation?
In short what are the pros and cons of using google-map-react and react-google-maps. I didn't find any comparison on the internet or SO.
Asked
Active
Viewed 1.1k times
14
2 Answers
10
Be carefull, react-google-maps
project is unmaintained more than a year, see
https://github.com/tomchentw/react-google-maps/issues/986
They suggest to look at @react-google-maps/api but it is quite a young project and doesn't have a lot of stars on GitHub yet.
I personally like google-map-react which is still under (quite active) development.

mcihak
- 332
- 2
- 9
2
I found the google-maps-react documentation a bit confusing because it utilizes a HOC, compose, to simplify the map. For those new to React, it might be easier to start without compose.
react-google-maps, a package that essentially provides a React component wrapper for the Google Maps API. react-google-maps allows users to use the full functionality of Google Maps Javascript API.

Panayiotis Georgiou
- 1,135
- 3
- 19
- 36
-
So `react-google-maps` allows users to use full functionality whereas `google-map-react` don't. Correct? – uneet7 Apr 02 '19 at 07:39
-
1Yeap and react-google-maps it is much easier integration! – Panayiotis Georgiou Apr 02 '19 at 07:47