This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-26
Channels
- # aatree (1)
- # admin-announcements (1)
- # beginners (84)
- # boot (239)
- # braid-chat (5)
- # braveandtrue (20)
- # cider (42)
- # cljsjs (4)
- # cljsrn (31)
- # clojars (18)
- # clojure (101)
- # clojure-austin (1)
- # clojure-gamedev (4)
- # clojure-madison (2)
- # clojure-poland (30)
- # clojure-russia (37)
- # clojurescript (95)
- # core-async (7)
- # cryogen (1)
- # css (3)
- # cursive (14)
- # datomic (8)
- # devcards (7)
- # dirac (2)
- # editors (2)
- # emacs (2)
- # funcool (1)
- # hoplon (15)
- # immutant (30)
- # ldnclj (37)
- # lein-figwheel (6)
- # leiningen (8)
- # luminus (5)
- # mount (1)
- # off-topic (59)
- # om (325)
- # om-next (7)
- # onyx (95)
- # parinfer (162)
- # proton (1)
- # re-frame (4)
- # reagent (23)
- # slack-help (4)
- # yada (43)
Thanks all for the feedback. MDL seems too much of a burden then. I’m going to take a look at Semantic UI. I need a textfield with floating label though, lets see if semantic ui or bootstrap can offer that.
Quick question (hopefully). Is there a good way of combining Twitter’s bootstrap with reagent? Is there a place where I could see some examples?
@mccraigmccraig: no I haven’t yet… I was just looking at https://github.com/reagent-project/reagent-forms
hey all, i am trying to use a react component (specifically react-dropzone: https://github.com/okonet/react-dropzone) but i’m getting an error: A valid ReactComponent must be returned. i’m using reagent/adapt-react-class to transform the react object into something i can use in reagent like this:
(def Dropzone (js/require "react-dropzone"))
(def dz (reagent/adapt-react-class Dropzone))
(defn build-dropzone []
[dz {:onDrop #(.log js/console “dropped something")} "upload now”]
@azzikid: FWIW I used this component on a React project and regret it, react-dnd I think accomplishes the same thing albeit with more code and is much nicer. I also think there’s a reagent/ClojureScript alternative (I seem to remember seeing one.)
@azzikid: I wish I could remember specifics 😞 I picked it because it was easier to set up, but IIRC it got messy real fast with callbacks, rather than react-dnd that passes things down as props to your component
i’m still curious about the error i’m getting with react-dropzone. i feel like i am missing a fundamental concept. or maybe i am doing it right but react-dropzone is not fit for reagent/adapt-react-class
Sorry, wish I could help more. Just wanted to drop in my two cents about the component. Still, since you’re using reagent why not go for a “native” alternative?
[:ul
(for [x (range 5)]
[:li x]]
and
(into [:ul]
(for [x (range 5)]
[:li x]]
seem to render the same thing, when is it necessary to use into
?In the first option, do you get key warnings? The second option, i believe will circumvent the need to add key metadata; however, it will also recreate the ul on every re-render. So i think the second option is easier and makes sense for small stuff, but anything bigger where rendering times come to relevance, the first option (with key metadata) is the way to go.