4 ms·
Doesn't that produce the "array items should have key prop" message? Also you can use `items.map` in your example.
by mikewhy 9y ago
Doesn't that produce the "array items should have key prop" message?
Also you can use `items.map` in your example.
- mlsarecmg 9y agoI only wanted to show that react doesn't specify a programming style. He said javascript maps are "quirky." Maps are fine but so are plain loops. Ternaries are fine, so are plain if-then-else constructs if someone would like it better that way. The example would run without keys, it's merely for demonstration. You'd need keys in Vue as well.