This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-04
Channels
- # announcements (5)
- # aws (12)
- # beginners (76)
- # boot (29)
- # cider (24)
- # circleci (9)
- # clojure (64)
- # clojure-dev (27)
- # clojure-europe (3)
- # clojure-houston (1)
- # clojure-italy (33)
- # clojure-nl (19)
- # clojure-poland (1)
- # clojure-spec (6)
- # clojure-uk (20)
- # clojurescript (103)
- # clojutre (1)
- # code-reviews (60)
- # cursive (76)
- # data-science (20)
- # datomic (20)
- # duct (58)
- # figwheel-main (4)
- # fulcro (36)
- # graphql (6)
- # kaocha (4)
- # onyx (1)
- # pathom (15)
- # quil (3)
- # re-frame (15)
- # reagent (15)
- # reitit (9)
- # remote-jobs (2)
- # rewrite-clj (16)
- # ring-swagger (7)
- # shadow-cljs (132)
- # spacemacs (12)
- # sql (5)
- # vim (9)
- # xtdb (12)
- # yada (4)
hey friends, question here… React.setState() | React.useEffect() are not compatible with Reagent, right?
the reason I’m asking - it’s not because I want to write code with hooks, reagent/re-frame have better tools for that, I’m asking because I found myself in a corner where I cannot re-use third-party React libs with hooks
Look at the react features document on the repository.
in that example https://github.com/reagent-project/reagent/blob/363f2d4976ac077a289d7a5d46d41a22e15d723c/doc/ReactFeatures.md#hooks
how do I send parameters into example
component fn?
[:> example args]
doesn’t seem to be working
based on examples inside reagent, it should: https://github.com/reagent-project/reagent/blob/3b10c426c1003ba9bc93e8c1e3c3d13a73158cec/examples/material-ui/src/example/core.cljs#L68
Question about passing a component as a property. When using material-ui
there are a couple of forms that require that you pass an element as a property (from their example):
<Select
value={values.age}
onChange={handleChange}
input={<FilledInput name="age" id="filled-age-simple" />}
>
Documentation confirms that input
takes an element. I tried the following with no luck: [:> mui/Select
{:input [:> mui/FilledInput {:id "country"
:name "country"}]]
Got an clues?The reagent.core/as-element function creates a React element from a Hiccup form http://reagent-project.github.io/docs/master/InteropWithReact.html
And there is also an example only for material-ui, (the text component is tricky)
Yeah...I followed that, but am messing with selects.
worked great, but material-ui with reagent is not simple at all with all the wonky stylings and other refs and states floating around.
No clearly not.
It is not “easy”.