reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
2021-04-23T21:04:28.176200Z

is there any way to check the previous reaction value inside reaction?

(def atm (r/atom 1))
  (def tmp (ra/reaction (if-not (neg? @tmp) (dec @atm) @tmp)))
something like this

p-himik 2021-04-23T22:31:50.176300Z

No. But you can do it via an extra atom.

👌 1