mxw / vim-jsx

React JSX syntax highlighting and indenting for vim.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ES6 Template Causes formatting issue when used inside HTML prop

RussBrown00 opened this issue · comments

This breaks formatting.

function emailLink(email) {
	return <a href={`mailto:${email}`} className="underline">{email}</a>;
}

screenshot 2017-11-17 14 23 51

I had the same error today, but for some reason it fixed when I deleted and pasted all the code again

I try your code on my Vim and it works fine

Read README.

@902Labs would you happen to have vim-jsx-typescript installed too? I had the same issue and narrowed it down to that plugin.