This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-04-15
Channels
- # beginners (15)
- # boot (4)
- # cider (1)
- # cljsrn (16)
- # clojars (1)
- # clojure (92)
- # clojure-india (3)
- # clojure-russia (27)
- # clojure-spec (9)
- # clojure-uk (5)
- # clojurescript (73)
- # cursive (28)
- # datascript (10)
- # emacs (1)
- # events (5)
- # hoplon (1)
- # instaparse (7)
- # juxt (2)
- # klipse (13)
- # lumo (17)
- # off-topic (166)
- # onyx (4)
- # protorepl (5)
- # re-frame (5)
- # reagent (13)
- # rum (26)
- # untangled (17)
- # yada (3)
I’m using https://github.com/unclecheese/react-selectable and trying to figure out what I need to do for this https://github.com/unclecheese/react-selectable/blob/master/src/createSelectable.js
@conaw, check out https://gist.github.com/pesterhazy/6c517653945f84a39c1ae3cc8b20c552
scroll down for a live demo of react-select
well not the same as react-selectable but you should get the idea
thanks @pesterhazy
(def scomp js/Selectable.createSelectable)
(defn sbutton [i]
[:button {:style {
:padding "40px"}}
(:children i)])
(def btn (reagent/adapt-react-class (scomp (r/reactify-component sbutton))))
this did the trick for meYup that looks about right
you need to basically convert in both directions react->reagent and reagent->react
you might also be interested in the [:> some-react-component]
shortcut and the r/as-element
function