Skip to content

Commit 0514b49

Browse files
authored
Merge pull request #126 from isaacabraham/patch-2
Update README.md
2 parents 847bca6 + b6fa398 commit 0514b49

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/Fable.ReactGoogleMaps/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,21 @@ Fable bindings and helpers for [react-google-map](https://github.com/tomchentw/r
77
```
88
npm install --save react-google-maps # or
99
yarn add react-google-maps
10+
yarn add @babel/plugin-proposal-class-properties
1011
1112
paket add Fable.ReactGoogleMaps --project [yourproject]
1213
```
1314

1415
## Usage
1516

17+
In your webpack, add the following:
18+
19+
```
20+
plugins: [
21+
// other plugins...
22+
"@babel/plugin-proposal-class-properties" ]
23+
```
24+
1625
In your css add the following:
1726

1827
```css
@@ -26,6 +35,10 @@ In your css add the following:
2635
and in your F# code you can create the map like this:
2736

2837
```fs
38+
open Fable.Core.JsInterop
39+
open Fable.Helpers.ReactGoogleMaps
40+
open Fable.Helpers.ReactGoogleMaps.Props
41+
2942
let defaultCenter:Fable.Import.GoogleMaps.LatLngLiteral = Fable.Helpers.GoogleMaps.Literal.createLatLng 40.6892494 -74.0445004
3043
3144
let myMap =

0 commit comments

Comments
 (0)