I am reading the React documentation in order to better understand Om. The page 
https://facebook.github.io/react/docs/multiple-components.html states "where 
the identity and state of each child must be maintained across render passes, 
you can uniquely identify each child by assigning it a key".

  render: function() {
    var results = this.props.results;
    return (
      <ol>
        {results.map(function(result) {
          return <li key={result.id}>{result.text}</li>;
        })}
      </ol>
    );
  }

Here is my comment and question. I don't see this mentioned in the Om 
documentation nor in Om examples. Why not? It seems like an important technique.

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to