This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-20
Channels
- # adventofcode (47)
- # announcements (3)
- # aws (29)
- # bangalore-clj (3)
- # beginners (63)
- # boot (2)
- # braveandtrue (40)
- # calva (34)
- # cider (37)
- # cljs-dev (8)
- # clojars (3)
- # clojure (45)
- # clojure-europe (2)
- # clojure-france (4)
- # clojure-india (2)
- # clojure-italy (44)
- # clojure-japan (4)
- # clojure-nl (39)
- # clojure-serbia (1)
- # clojure-spec (21)
- # clojure-uk (75)
- # clojurescript (28)
- # cursive (24)
- # data-science (3)
- # datomic (31)
- # emacs (13)
- # fulcro (35)
- # hoplon (21)
- # jobs-discuss (66)
- # nrepl (18)
- # off-topic (72)
- # pathom (35)
- # re-frame (20)
- # reagent (54)
- # shadow-cljs (35)
- # spacemacs (9)
- # specter (8)
- # sql (13)
- # testing (9)
- # tools-deps (21)
- # vim (3)
like that:
(def test-data {:labels ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday"],
:series [[12, 9, 7, 8, 5], [2, 1, 3.5, 7, 3],[1, 3, 4, 5, 6]]})
to only get from the console :
React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
@lilactown so the problem is my limited knowledge of shadow-cljs ?
otherwise you’d have to do (:require ["react-chartist" :as rc]
and then elsewhere,
(def ChartlistGraph (.-default rc))
;; use ChartlistGraph component
thanks @lilactown you have been most helpfull
In this component click works fine, but when I resize the div, :on-resize does not fire.
The previous component is actually the :reagent-render of a form-3 component. Inside it I have gotten hold of the dom-node using reagent.core/dom-node and tried attaching an event listener like below, but that does not fire either.
Any help appreciated. What I’m working on is an updatable, resizable D3 force visualisation. Everything works, but I just need to hook up the listener that will call my resize function. Note that the purpose of the resize is to make the SVG larger to fit more content, not scale it, so I’m not looking for SVG viewBox + preserveAspectRatio.
Looks like I will be using :on-mouse-up instead. Then I can have D3 re-render after the resizing has completed.
Is there a reagent library for virtual scrolling of a grid? (similar to: https://github.com/bvaughn/react-virtualized)
Guys, i am developing a SPA which will be like an “admin dashboard”, it would be very good to be able to use one of the already made templates avaliable on the internet, but most of them rely on Redux or some other thing like webpack due to images and css imports, so i can’t integrate them on the project because i want to use re-frame and stick with babel + shadow-cljs in order to import the jsx files