News for hackers. Stuff that matters.
Re:React 16 by mikewhy on Tuesday September 26, 2017 @05:18PM (#15342602)
Doesn't that produce the "array items should have key prop" message?

Also you can use `items.map` in your example.

Re:React 16 by mlsarecmg on Tuesday September 26, 2017 @05:28PM (#15342678)
I 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.