3 ms·
<div if={expression} /> translates to React.createElement('div', {if: <expression>}) This is bad because createElement always gets execute, whether the if ex
by Yaggo 10y ago
<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.