From 304cc4be7f31a0bdf2d145e61f2efa673595a8c9 Mon Sep 17 00:00:00 2001 From: Juho Teperi Date: Mon, 31 Jul 2017 14:25:04 +0300 Subject: [PATCH] Fix react-leaflet example --- docs/0.8-upgrade.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/0.8-upgrade.md b/docs/0.8-upgrade.md index 1167121..c1f1318 100644 --- a/docs/0.8-upgrade.md +++ b/docs/0.8-upgrade.md @@ -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" :file-min "cljsjs/production/react-leaflet.min.inc.js" :provides ["react-leaflet"] - :requires ["react"] + :requires ["react" "cljsjs.leaflet"] :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: ```cljs (ns ... (:require cljsjs.react-leaflet))