This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-07
Channels
- # aleph (15)
- # beginners (18)
- # boot (18)
- # business (1)
- # cider (11)
- # cljs-dev (13)
- # cljsrn (19)
- # clojure (14)
- # clojure-austin (8)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-greece (118)
- # clojure-poland (3)
- # clojure-russia (46)
- # clojure-spec (65)
- # clojure-uk (18)
- # clojurebridge (3)
- # clojurescript (16)
- # cloverage (7)
- # core-async (8)
- # cursive (74)
- # datomic (28)
- # editors (3)
- # emacs (3)
- # ethereum (5)
- # hoplon (19)
- # jobs-rus (18)
- # lein-figwheel (1)
- # off-topic (2)
- # om (107)
- # om-next (4)
- # onyx (23)
- # pedestal (23)
- # proton (3)
- # protorepl (1)
- # re-frame (108)
- # reagent (10)
- # ring-swagger (15)
- # spacemacs (2)
- # specter (11)
- # testing (7)
- # untangled (79)
- # vim (4)
- # yada (53)
Just noticed using map destructing generates a bunch more code than a simple (:x y)
, why is that? I assume it can handle a few more cases?
oops my bad
my point was that destructuring is pretty sophisticated so not really surprised 🙂
What to people use to build sass from leiningen?
SASS is actually totally optional - most important is using something like PostCSS to add prefixes etc https://github.com/postcss/postcss
@rickmoynihan I'm don't currently have this requirement, but when I did my approach was to do it outside of leiningen. Of course, depending on your deployment, this may not be an option
Hey,
<AutoSizer>
{({ height, width }) => (
<List
height={height}
rowCount={list.length}
rowHeight={20}
rowRenderer={rowRenderer}
width={width}
/>
)}
</AutoSizer>
How would this look in Clojurescript?My normal goto is using jsx-to-clojurescript
but he returns ERROR: Don't know how to handle node type ObjectPattern
[ui/AutoSizer
{}
(fn
[nil]
ui/List
{:height height,
:row-count (:length list),
:row-height 20,
:row-renderer row-renderer,
:width width})]
Which is far enough because I don’t know either 🙂@crankyadmin this should work
[ui/AutoSizer
{}
(fn
[{:keys [width height]} size]
[ui/List
{:height height,
:row-count (:length list),
:row-height 20,
:row-renderer row-renderer,
:width width})]]
hi there, does anyone know of any lib for dynamic (Google Closure) module loading in re-frame ?
just tried to evaluate some clojurescript in emacs, I got an error saying that i need a clojurescript repl to jack-in to
@crankyadmin I got it working with (AutoSizer* #js {:children (fn [params] (r/as-element ...))})
My setup for react-virtualized looks like this... https://gist.github.com/olivergeorge/fdce0ff7caf92df8253babb2c53263e6