El sábado, 7 de febrero de 2015, 14:11:22 (UTC+1), Colin Yates  escribió:
> Reading "Dynamic Children" in
> https://facebook.github.io/react/docs/multiple-components.html might
> provide clarity.
> 
> I think the key needs to be "globally" unique (where "globally" refers
> to the set of rendered elements rather than just the children) and
> must not change (so a function of an element's position isn't a great
> idea).
> 
> As for the frequency of using a key in reagent versus om, I think the
> key is a pass-through to react so the wrapper library is irrelevant. I
> tend to use it all the time (in om), and I seem to remember seeing
> some warnings from react about not using it, but I might have made
> that up...
> 

This is more or less what I thought but, for instance, the om tutorial (and 
lots of other code I've read) is manipulating a list of components wothout 
keying them.

Maybe stay in the safe and use always a key :-)

JM

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