Here is how you might render a list of items into DOM nodes in Reagent.
will generate the following HTML, along with WARNINGS:
React needs to know a list of
[:li]’s uniqueness to accomplish performant renders on large lists. When a
[:li] tags are generated dynamically, React won’t be able to tell if they were shuffled around, so we assign unique keys to each element.
The solution is to generate
[:li]’s with meta data representing unique keys:
will generate the following, without warnings: