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

React.Fragment也支持增加hash #1

Open
pearone opened this issue Oct 9, 2024 · 0 comments
Open

React.Fragment也支持增加hash #1

pearone opened this issue Oct 9, 2024 · 0 comments

Comments

@pearone
Copy link

pearone commented Oct 9, 2024

您好,想在fragment里的元素也增加hash属性。

      <React.Fragment>
        <div className="test-frag"></div>
      </React.Fragment>
      <>
        <div>text</div>
      </>
    </div>
   match element.opening.name {
        swc_core::ecma::ast::JSXElementName::JSXMemberExpr(ref _member_expr) => {
            element.visit_mut_children_with(self);
            return;
        }
        _ => {}
   }
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

1 participant