John Chijioke writes: > I don't see how UI as a function over a mutable place sound as fantastic. > What are the benefits? > > On Tuesday, February 25, 2014 8:37:04 PM UTC+1, kovas boguta wrote: >> Your UI is a function, instead of a mutable place. >> >> >> >> >> >> On Tue, Feb 25, 2014 at 2:33 PM, John Chijioke <[email protected]> wrote: >> >> > What is fantastic about React? >> >> > >> >> > -- >> >> > Note that posts from new members are moderated - please be patient with >> > your first post. >> >> > --- >> >> > You received this message because you are subscribed to the Google Groups >> > "ClojureScript" group. >> >> > To unsubscribe from this group and stop receiving emails from it, send an >> > email to [email protected]. >> >> > To post to this group, send email to [email protected]. >> >> > Visit this group at http://groups.google.com/group/clojurescript.
Please note that this applies to Om, but most of it is true for React too: - Separation of Logic and UI You can change the state however you want, Om will keep the UI up-to-date without having to mix ui updates into the business logic - Transitive transition between states It doesn't matter if you go from a->b->c or a->c or anything else - Om/React will always generate the same UI for you - "Correct" event handling React implements correct (as specified by W3) in all browser. No IE-specific hacks needed. You *can* use components just like dumb templates which just display the data they receive. You also have the *option* to make them smarter by adding behavior / local state. -- Moritz Ulrich
pgpF9iPuHpVmR.pgp
Description: PGP signature
