Fork me on GitHub
#rum
<
2017-11-23
>
Ale07:11:53

@sova Not an expert but i guess you can write (:stuff (rum/react myatom)) in the component body

sova-soars-the-sora10:11:51

Thanks! I made some headway: if you want to reference a value and change it you can use (rum/cursor atom :key) to get a top-level key and (rum/cursor-in atom [:key1 :subkey1]) to get a nested key... and if you want to display the value, just use a let like (let [ super-email-val (rum/cursor app-state-atom :email] .... and later on you can say @super-email-val to display the val, and you can use (rum/react super-email-val) to watch for changes

Ale20:11:07

It seems cljsjs/slate has some issues https://github.com/cljsjs/packages/issues/954 😕 I'm finally playing with draft js, it worked straight away ^^