Fork me on GitHub
#re-frame
<
2016-02-18
>
nidu04:02:13

@jakehow: did you look at r/children? The second snippet at this page https://reagent-project.github.io/news/any-arguments.html seems to be what you need

jakehow04:02:12

nidu: thanks yeah just read that doc.. the strange thing is I get errors related to missing key values if I use square brackets, but works fine w/ round brackets

jakehow04:02:46

nidu: any suggestion on the best way to achieve the dom im looking for?

jakehow04:02:21

also why do I need to iterate over the items in my-list?

nidu04:02:30

@jakehow: you should provide key for each element in children list in this case. React requires it in order to treat children collection changes efficiently (see https://facebook.github.io/react/docs/multiple-components.html#dynamic-children). And you can specify key in reagent like this ^{:key item} [:li "Item " item]

jakehow04:02:40

nidu: cool thanks

nidu05:02:18

Btw i think you'd better ask reagent specific questions in #C0620C0C8 channel