This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-07
Channels
- # announcements (3)
- # beginners (124)
- # calva (60)
- # cider (81)
- # cljs-dev (65)
- # cljsrn (1)
- # clojure (268)
- # clojure-dusseldorf (2)
- # clojure-europe (3)
- # clojure-italy (9)
- # clojure-losangeles (1)
- # clojure-nl (22)
- # clojure-russia (3)
- # clojure-spec (24)
- # clojure-uk (34)
- # clojurescript (72)
- # code-reviews (8)
- # cursive (20)
- # datomic (32)
- # fulcro (49)
- # jobs (1)
- # jobs-discuss (15)
- # juxt (10)
- # lein-figwheel (10)
- # nrepl (4)
- # off-topic (37)
- # overtone (1)
- # portkey (2)
- # protorepl (8)
- # random (1)
- # re-frame (1)
- # reagent (43)
- # reitit (8)
- # ring (16)
- # ring-swagger (2)
- # rum (6)
- # shadow-cljs (63)
- # specter (2)
- # testing (32)
- # tools-deps (32)
- # unrepl (1)
- # vim (3)
i get a " Hooks can only be called inside the body of a function component." that is not uncommon
reagent components under the hood actually get created as classes, even though in CLJS we pass them around as functions
if you want a library that gives you similar ergonomics as reagent (with hiccup syntax etc.) but uses just React and Hooks, you can try my library: https://github.com/Lokeh/hx
there’s a lot that reagent and JSX paint over for us. I got tripped up by the same thing
that’s correct. which means that when concurrent react becomes stable, they won’t yet be able to take advantage of all of it’s features
it seems like they should have their own virtual dom implemented instead of just using reacts
there’s a lot of work just in React’s virtual dom diffing and component abstraction that they are reusing
thanks for the feedback. I have another project that I whipped up as a POC right when hooks came out: https://github.com/Lokeh/hooks-demo
I’m kind of waiting for the official React support to land for hooks before doing an announcement to the community writ large
@U4YGF4NGM i took a look on your code
But i wanted to ask you why do you use the same refernce to <-deref. It seems to me someone is going to lose refernce if they deref from different components and one unmounts.
if you want a library that gives you similar ergonomics as reagent (with hiccup syntax etc.) but uses just React and Hooks, you can try my library: https://github.com/Lokeh/hx
I am looking at styling for a new shadow-cljs project - and from my research it looks like material-ui and semantic might have trouble because they have extensive cljs components that might conflict with shadow-cljs — I have also looked briefly and garden and some other similar libraries - I do not have complex styling needs — Any suggestions of what woul djust work for a Reframe Shadow-cljs app — mainly browser
We use semantic UI but it is completely outside the shadow pipeline. We build using gulp
and node-sass
in a Makefile
I am using Material-UI with Shadow to some success but inside a hobby project and it works super great. The project is moving towards a CSS-in-JS solution so you shouldn't have to worry about an additional style pipeline (https://material-ui.com/css-in-js/basics/). All that being said I haven't hit the edges of the library quite yet so you might want to kick the tires yourself first.