3 ms·
Not sure why this is getting downvotes. Ternaries are at best a necessary evil in JSX. We'll all be rejoicing when pattern matching finally lands in JS [1]. [1
by jakelazaroff 3y ago
Not sure why this is getting downvotes. Ternaries are at best a necessary evil in JSX. We'll all be rejoicing when pattern matching finally lands in JS [1].
[1] https://github.com/tc39/proposal-pattern-matching https://github.com/tc39/proposal-pattern-matching