Skip to content

JSX: Recognize nested tags inside attributes #733

Open
@noahlt

Description

Abstract React components are not well-supported; Emmet doesn't seem to recognize nested tags inside attributes, because it uses HTML logic for parsing tags, and this only happens in JSX.

Given this example:

export default function Test() {
  return (
    <AbstractComponent
      render={() => {
        return (
          <p>example</p>
        );
      }}
    />
  );
}

If you select the <p> element and run "wrap with abbreviation", it tries to wrap the entire <AbstractComponent ... /> rather than just the <p>example</p>.

Thanks for all your wonderful work on Emmet!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    ya-osnOpen-source Night Yandex event

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions