Closed tremby closed 2 years ago
This code renders correctly:
function thing() { return <div>{true && <p>{"x"}</p>}</div>; };
but if I add parens (which is common in JSX/TSX like this) it no longer renders correctly:
function thing() { return ( <div>{true && <p>{"x"}</p>}</div> ); };
It breaks further if I add more linebreaks and parens, which is also common:
function thing() { return ( <div> {true && ( <p>{"x"}</p> )} </div> ); };
I cannot reproduce it. Are you on vim? Neovim is okay.
I trimmed some extra plugins and some configuration which I'm not really using any more, and this now all looks fine. Must have been a conflict somewhere.
This code renders correctly:
but if I add parens (which is common in JSX/TSX like this) it no longer renders correctly:
It breaks further if I add more linebreaks and parens, which is also common: