News for hackers. Stuff that matters.
Re:React, JSX and ES6: The Weird Parts by mxxx on Thursday August 27, 2015 @07:29PM (#10132795)
If you really need to, I don't mind this pattern...

{conditional && (

  <div>throw whatever you want</div>
  <div>in here.</span>

)}
Re:React, JSX and ES6: The Weird Parts by shuzchen on Tuesday September 01, 2015 @02:55PM (#10154829)
Of course, this doesn't actually work, because you have two root elements in that expression. You have to wrap them in an enclosing tag or inject them another way.