This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-12-03
Channels
- # adventofcode (49)
- # bangalore-clj (1)
- # beginners (56)
- # berlin (1)
- # chestnut (6)
- # cljs-dev (5)
- # clojure (48)
- # clojure-greece (29)
- # clojure-russia (3)
- # clojure-spec (5)
- # clojure-uk (3)
- # clojurescript (28)
- # cursive (25)
- # emacs (3)
- # fulcro (123)
- # hoplon (2)
- # klipse (6)
- # off-topic (146)
- # om (11)
- # re-frame (29)
- # reagent (7)
- # reitit (3)
- # specter (11)
- # unrepl (4)
- # yada (3)
I don’t see the issue though. I haven’t gotten to try running that example myself yet though. I can tomorrow and see. Looked like it should work to me. @raheel
@U0LK1552A I did move on to a different integration. Had success with Slate: https://docs.slatejs.org/walkthroughs/installing-slate. However, I am now stuck at specifying the on-change
property in the Editor
constructor (example in that link). Any ideas how I would replicate:
onChange = ({ value }) => {
this.setState({ value })
}
it’d basically end up coming down to something like:
(let [ed (create-the-editor-somehow)
v @some-state
change! (fn [v]
(reset! some-state v))]
[:> ed {:value v
:on-change change!}])
1) I’m not sure how you are managing state in general 2) I’m not sure how you have brought in the component, but I’m guessing you have a native React component you are trying to use in the Hiccup.
Good day channel! I'm trying to get into clojurescript and reagent, but stuck with Uncaught ReferenceError: react_dom is not defined
(on 0.8.0-alpha2). Non-reagent clojurescript works fine. All of it regardless if figwheel is turned on or off. So what can I read to understand the cause?
I see the ReactDOM in globals. And contrary to what I have in project generated by lein new reagent my-thing
my app is a set of different js files instead of a single one