A minimalistic ClojureScript interface to React.js
souenzzo 2020-10-06T15:28:30.033600Z

reagent will str my :key before pass it to react key?

p-himik 2020-10-06T15:45:42.033700Z


souenzzo 2020-10-06T16:38:55.034Z

literally str or it will pr-str / .toString ?

lispers-anonymous 2020-10-06T16:43:06.034200Z

If you use the react dev tools browser plugin I believe it will show you what the key is for a particular component.

p-himik 2020-10-06T16:48:04.034400Z

Actually, my bad - it's React that does that:

if (hasValidKey(config)) {
      key = '' + config.key;

p-himik 2020-10-06T16:48:30.034600Z

All that Reagent does is:

(when-some [key (key-from-vec v)]
      (set! (.-key jsprops) key))

souenzzo 2020-10-06T19:04:45.034900Z

pass directly to react. awesome @p-himik. thnks