On Sun, Aug 17, 2014 at 4:43 AM, Mark Engelberg <[email protected]> wrote: > On Saturday, August 16, 2014 10:02:18 PM UTC-7, Jonas Enlund wrote: >> Hi >> >> 'owner' is the underlying React component. Ownership means something >> specific in React, you can read about it here: >> http://facebook.github.io/react/docs/multiple-components.html#ownership >> >> /Jonas > > I looked at that, and didn't find it particularly illuminating:
owner is just the real React component associated with your reified instance that implements Om protocols. Because Om "props" are immutable values (they need not be cursors though that's usually the case) we need some way to supply default behavior without forcing users to define React classes themselves. So Om is a delegation system - you implement Om methods which are delegated to by the underlying React component - the owner. By exposing the owner in this way we also avoid the needless work in replicating every aspect of React's API, you can just directly access more pedestrian functionality right through the owner - this means as React evolves - less work for us to keep up. > There are two sentences here. The first one refers to "props". Props aren't > mentioned anywhere in the Om tutorial, nor in any of the Om wiki documents > about underlying concepts. It's not even clear to me if props has anything > to do with Om, maybe this was one of the concepts that doesn't translate from > react to Om? Om has a notion of props - this is the first argument to any Om component constructing function. But our props can be any immutable value and often cursor into some global application state. David -- 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.
