<div foo={a + 1}> {2 + 3} </div>;
This should format idempotently, and not format to:
<div foo=(a + 1)> (2 + 3) </div>;
Likewise for fragments. And maybe other things I'm missing.
cc @jaredly @IwanKaramazow any opinion? Or are people fine with () nowadays?
Why {}?
It's what JS JSX uses
Yeah, I think {} is nice for similarity with js, also reduces the number of () :P
Indeed, it's probably time to go through all of jsx and make it braced.
I'm up for the task…
Most helpful comment
It's what JS JSX uses