omcljs / om

ClojureScript interface to Facebook's React
6.66k stars 364 forks source link

Unify `:react-key` and `:key`. #805

Open mikekap opened 7 years ago

mikekap commented 7 years ago

There's a bit of a gotcha to passing react keys to children components. When using (dom/XXX) you have to use :key, but when the underlying component is a OM next component, you have to use :react-key.

It would be great to unify these (probably under :react-key), and maybe even warn users that use :key on (dom/XXX).