reagent icon indicating copy to clipboard operation
reagent copied to clipboard

React unique key not working with nesting shorthand >

Open skuteli opened this issue 10 years ago • 0 comments

When using a > shorthand in component unique key is attached to the most nested child instead of the outer one, and react is reasonably warning that there is no unique key for the component.

So the component (defn tag [tag] ^{:key tag} [:span>span (name tag)])

Looks like this in react devtools: image

skuteli avatar Sep 16 '16 15:09 skuteli