mirror of
https://github.com/status-im/reagent.git
synced 2025-01-13 21:34:29 +00:00
Fix react-leaflet example
This commit is contained in:
parent
3f8350463c
commit
304cc4be7f
@ -21,10 +21,13 @@ to refer to the new name, and at the same time your can start using
|
|||||||
:foreign-libs [{:file "cljsjs/development/react-leaflet.inc.js"
|
:foreign-libs [{:file "cljsjs/development/react-leaflet.inc.js"
|
||||||
:file-min "cljsjs/production/react-leaflet.min.inc.js"
|
:file-min "cljsjs/production/react-leaflet.min.inc.js"
|
||||||
:provides ["react-leaflet"]
|
:provides ["react-leaflet"]
|
||||||
:requires ["react"]
|
:requires ["react" "cljsjs.leaflet"]
|
||||||
:global-exports {react-leaflet ReactLeaflet}}]}}
|
:global-exports {react-leaflet ReactLeaflet}}]}}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
(Note: This still uses the old name for Leaflet, but you can also
|
||||||
|
update Leaflet foreign-lib to use new name and `:global-exports`.)
|
||||||
|
|
||||||
Old code:
|
Old code:
|
||||||
```cljs
|
```cljs
|
||||||
(ns ... (:require cljsjs.react-leaflet))
|
(ns ... (:require cljsjs.react-leaflet))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user