News for hackers. Stuff that matters.
Re:What should go into JSX 2.0? by buchanaf on Monday October 17, 2016 @12:27AM (#12722694)
I actually generally include this in my Babel configuration: https://www.npmjs.com/package/jsx-control-statements.

People might argue that this isn't the React way of doing things, but it's easier than setting a conditional classname to display none. It's also easier than breaking out a small amount of html into a separate component just because you want some conditional display logic.

There are no comments on this comment yet.