News for hackers. Stuff that matters.
Re:JSX is no longer my friend by gberger on Tuesday March 15, 2016 @04:35PM (#11292776)
You just proved the author's point. The JSX you provided is invalid, since you can't pass `for` as a function argument (see his equivalent bit about `if`).
Re:JSX is no longer my friend by untog on Tuesday March 15, 2016 @04:52PM (#11292892)
Huh. Well, my only defense is that I would never even try to write JSX like that anyway - the actual JS in my JSX templates is basically just Array.map calls.