3 ms·
I agree that the examples aren't particularly motivating. But I think it really shines in JSX blocks (or other simple branches in literal data structure definit
by acjohnson55 11y ago
I agree that the examples aren't particularly motivating. But I think it really shines in JSX blocks (or other simple branches in literal data structure definitions). It's also super helpful when needing to initialize several variables based on branching on several other values. Having expression-if combined with array unpacking assignment makes this a breeze.