Fork me on GitHub
#reagent
<
2017-12-03
>
mikerod01:12:59

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

raheel01:12:24

@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 })
  }

mikerod18:12:03

well that comes down to how you are managing yoru state

mikerod18:12:43

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!}])

mikerod18:12:14

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.

Ivan Fedorov22:12:28

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

qqq23:12:13

can you push your project to github? it'd be easier than having people ask you for bits of the code piece by piece