bhauman / devcards

Devcards aims to provide a visual REPL experience for ClojureScript
1.53k stars 116 forks source link

Use unique key for html collection elements #86

Closed tristanstraub closed 8 years ago

tristanstraub commented 8 years ago

This fixes the following card which complains about duplicate keys in react:

(defcard devcard-inspect
  (fn [data _]
    (reagent/as-element
     [:button {:on-click #(swap! data conj ".")} "Just one bite!"]))
  ["."]
  {:inspect-data true})