Fix react-leaflet example

This commit is contained in:
Juho Teperi 2017-07-31 14:25:04 +03:00
parent 3f8350463c
commit 304cc4be7f
1 changed files with 4 additions and 1 deletions

View File

@ -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))