News for hackers. Stuff that matters.
Re:What should go into JSX 2.0? by Yaggo on Sunday October 16, 2016 @01:02PM (#12719588)
<div if={expression} />

translates to

React.createElement('div', {if: <expression>})

This is bad because createElement always gets execute, whether the if expression evaluated to true or false. Changing this semantic would be messy.

There are no comments on this comment yet.