# react-withmap

> loading google maps api using script from https://github.com/fullstackreact/google-maps-react

Latest version **1.0.5** (published 2017-04-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install react-withmap
pnpm add react-withmap
yarn add react-withmap
bun add react-withmap
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-04-10 |
| First published | 2017-04-09 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Juanjo Franco |
| Maintainers | juanjofp |
| Keywords | gmaps, react |

## Links

- npm: https://www.npmjs.com/package/react-withmap
- Repository: https://github.com/Juanjofp/react-withmap
- Homepage: https://github.com/Juanjofp/react-withmap#readme
- Issues: https://github.com/Juanjofp/react-withmap/issues
- npm.io page: https://npm.io/package/react-withmap

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^15.5.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2017-04-10
- 1.0.4 — 2017-04-09
- 1.0.2 — 2017-04-09
- 1.0.0 — 2017-04-09

## README

# Description
Need to wrap any component inside react with google maps api, I've recopiled the scripts from https://github.com/fullstackreact/google-maps-react. This scripts are very well explained here https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/

This module just wrap a react component and inject the map object from google api as a prop into it.

All the merits are for [fullstackreact](https://www.fullstackreact.com/articles/how-to-write-a-google-maps-react-component/) who are the creators of the scripts.

# Install
```
yarn add withMap
```

# Usage
```
import { withMap } from 'react-withmap';

export default withMap({ apiKey: 'apikeyfromgooglemaps' })(AnyReactComponent);
```

---
_Source: https://npm.io/package/react-withmap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
