Closed davazp closed 1 year ago
In typescript-ts-mode, when writing JSX, an arrow function inside a prop will close the JSX tag.
typescript-ts-mode
For example, with this snippet, (_|_) si the cursor position.
_|_
function Test () { return <Component prop={x=_|_}></Component> }
If I type > to continue typing an arrow function, it will autocomplete to:
>
function Test () { return <Component prop={x=>_|_</Component>}></Component> }
I've fixed this in master also. Can you try?
It is fixed. Thanks!
In
typescript-ts-mode
, when writing JSX, an arrow function inside a prop will close the JSX tag.For example, with this snippet, (
_|_
) si the cursor position.If I type
>
to continue typing an arrow function, it will autocomplete to: