A minimalistic ClojureScript interface to React.js
v 2020-05-10T18:32:28.421300Z

Hello whats the difference between reagent.core/atom vs reagent.ratom/atom ?

lilactown 2020-05-10T18:36:22.421600Z

they're the same

v 2020-05-10T18:40:47.422Z

@lilactown Thank you for the quick response 🙂


@vishal.gautam just to be clear, they act the same. So, generally speaking, you use a ratom as you would an atom. But they are different under the covers.


ratoms gain special powers within Reagent Components (which normal atoms don't have). viz. If a ratom is changed (`swap!`, etc), any Components which use them are re-rendered