On 22 June 2014 at 16:32:29, Jonathon McKitrick ([email protected]) wrote:

So tell me if this is accurate.... 

1. Reagent has the simplest approach, with just the 'render' function for 
React.js components, and a ratom (possibly one per component) for state. 

Yes, but if you need additional lifecycle functions you can do so with 
create-class, for example:

(def my-component
  (reagent/create-class 
    {:render (fn ...)
     :component-did-mount (fn ...)
     :component-did-update (fn ...)}))

The more I use Reagent, the more I like it - it’s very simple and results in 
exceptionally easy to read code. I’ve not yet found anything I’d like to do 
that can’t be done. I’d be very interested to hear about anything that’s easy 
in Om but not in Reagent.

--
paul.butcher->msgCount++

Silverstone, Brands Hatch, Donington Park...
Who says I have a one track mind?

http://www.paulbutcher.com/
LinkedIn: http://www.linkedin.com/in/paulbutcher
Skype: paulrabutcher

Author of Seven Concurrency Models in Seven Weeks: When Threads Unravel
http://pragprog.com/book/pb7con

-- 
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.

Reply via email to