Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX Element as props will replace tag after jsx Element prop has expanded. #185

Open
iahu opened this issue Dec 12, 2023 · 1 comment
Open

Comments

@iahu
Copy link

iahu commented Dec 12, 2023

Firstly, thanks your great work.

I hit a issue everyday, which for example, I have some jsx code, looks like below:

<Card title={<Button|}></Card>

my cursor is placed after <Button|, and I press Tab to expand the <Button tag, the result will be:

<Button></Card>

but not

<Card title={<Button><Button>}></Card>

as expected.

Hope this can be solved, thank you.

@sergeche
Copy link
Member

Writing tags inside attributes is a bit awkward and invalid in HTML (Emmet was developed for HTML), yet in JSX it’s perfectly valid. Will try to figure out how to make it work in Sublime Text

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants