reagent
reagent copied to clipboard
React unique key not working with nesting shorthand >
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:
