News for hackers. Stuff that matters.
Re:What should go into JSX 2.0? by olalonde on Sunday October 16, 2016 @05:32PM (#12721105)
That's something the "do expressions" ECMAScript proposal is meant to solve:

    {do {
      if (cond1 && cond2)
        <div>foo</div>
      else 
        ...
    }}
If JSX decides to implement "implicit" "do expressions", I suppose it would just look like this:

    {
      if (cond1 && cond2)
        <div>foo</div>
      else 
        ...
    }
http://wiki.ecmascript.org/doku.php?id=strawman:do_expressio...

There are no comments on this comment yet.