//// [tsxInArrowFunction.tsx] declare namespace JSX { interface Element { } interface IntrinsicElements { div: { text?: string; } } } // didn't work
{() =>
}
; // didn't work
{x =>
}
; // worked
{() => (
)}
; // worked (!)
{() =>
}
; //// [tsxInArrowFunction.jsx] // didn't work
{function () { return
; }}
; // didn't work
{function (x) { return
; }}
; // worked
{function () { return (
); }}
; // worked (!)
{function () { return
; }}
;