This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-04
Channels
- # arachne (108)
- # beginners (16)
- # boot (48)
- # cider (34)
- # cljs-dev (12)
- # clojure (237)
- # clojure-spec (50)
- # clojure-uk (5)
- # clojurescript (8)
- # cursive (1)
- # datascript (2)
- # datomic (6)
- # defnpodcast (1)
- # emacs (1)
- # fulcro (7)
- # hoplon (1)
- # keyboards (1)
- # off-topic (22)
- # re-frame (26)
- # reagent (2)
- # specter (16)
- # unrepl (6)
- # yada (1)
I am trying to use react-transition-group from https://github.com/cljsjs/packages/tree/master/react-transition-group. However,
(:require
[reagent.core :as r]
[react-transition-group :as react-transition-group])
gives me a Javascript error in the console: "Error: Undefined nameToPath for react_dom"@raheel you can't use :as
with cljsjs packages--see https://github.com/cljsjs/packages/wiki/Using-Packages
ah, I was using the instructions that came up in cljsjs when I clicked on that library: This package also supports :global-exports, so you can use it like it was a real namespace: (ns your.namespace (:require [react-transition-group :as react-transition-group])) (react-transition-group/someFunction)
but even doing
(ns mynamespace
(:require [reagent.core :as r]
[cljsjs.react-transition-group]
))
ends up with the same error