pieterv / react-googlemaps

A declarative React interface to Google Maps
MIT License
226 stars 68 forks source link

Added Frag component #8

Closed pieterv closed 9 years ago

pieterv commented 9 years ago

Frag is a helper component for creating reusable React GoogleMap components. This component has no functionality or output, it just allows you to return multiple components from a custom components render function.

The only prop required is the map prop (the GoogleMap instance), this is automatically passed down to all direct children of the Map component but will need to be manually set if you use Frag inside a custom component. The Frag component will then pass the map prop down to all of its direct children.